mercredi 3 août 2016

Route two specific urls to a different application apache

I have two applications:

  • WordPress multisite application serving all domain traffic
  • Ember app serving only /example/path/

The following works to a degree in that ember handles traffic to '/example/path/', but it also handles any other routes thereafter like '/example/path/pretty-wp-page':

Alias "/example/path" "/var/www/ember/app/dist"

Issue is, I want ember to handle only traffic to '/example/path/' and '/example/path/another-ember-route' and WordPress to handle any other, such as '/example/path/pretty-wp-page'

I tried the following:

AliasMatch "/example/path(/|another\-ember\-route)" "/var/www/ember/app/dist"

To no avail. Any ideas or suggestions? I've exhausted the possibilities of my skillset, can't see a solution in the apache documentation and Google isn't offering anything either.

Thanks




Aucun commentaire:

Enregistrer un commentaire