Welcome! Log In Create A New Profile

Advanced

Multiple alias

Posted by Poil2Q 
Multiple alias
April 25, 2014 05:58AM
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



Edited 1 time(s). Last edit at 04/25/2014 05:59AM by Poil2Q.
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 299
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready