I have a few sites. Each site has its own "server" section with a server_name that looks like this
server {
...
server_name siteA.example.com;
root /var/www/siteA;
...
}
I can therefore bring up the site using the url http://siteA.example.com
I however also need to bring up the site by using the url http://example.com/siteA How can this be done?
Two options to add to your config below ...
Option 1:
Option 2:
First option simply serves from
example.com/siteA
in addition while second option redirects tositeA.example.com