Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Multiple alias

$
0
0
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

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>