Hello,
I'm a newbie with nginx and i don' understand how i can configure it like my old apache conf :
On apache, I have several aliases that actually points to the same application. Each alias is a SetEnv to indicate which site is actually called. Like this :
- http://clients.mysite.com/client1 -> /var/www/clients with setenv CUSTOMER : X
- http://clients.mysite.com/client2 -> /var/www/clients with setenv CUSTOMER : Y
- ....
With apache, i make it with Alias :
Alias /client1 /var/www/clients
<Directory /var/www/clients>
SetEnv CUSTOMER 2;
RewriteEngine On
RewriteBase /client1
</Directory>
I have try some solutions find in this forum but it not working.
Can you help me ?
Regards
I'm a newbie with nginx and i don' understand how i can configure it like my old apache conf :
On apache, I have several aliases that actually points to the same application. Each alias is a SetEnv to indicate which site is actually called. Like this :
- http://clients.mysite.com/client1 -> /var/www/clients with setenv CUSTOMER : X
- http://clients.mysite.com/client2 -> /var/www/clients with setenv CUSTOMER : Y
- ....
With apache, i make it with Alias :
Alias /client1 /var/www/clients
<Directory /var/www/clients>
SetEnv CUSTOMER 2;
RewriteEngine On
RewriteBase /client1
</Directory>
I have try some solutions find in this forum but it not working.
Can you help me ?
Regards