Welcome! Log In Create A New Profile

Advanced

Re: Virtual Document Root

January 22, 2011 02:56AM
On Fri, Jan 21, 2011 at 03:51:10PM -0800, Blake Scrivner wrote:

> Hello All,
>
> Is there a configuration for Nginx that is comparable to Apache's VirtualDocumentRoot? For example, in an Apache vhost conf file I can have "VirtualDocumentRoot /var/www/html/_%-2.0.%-1.0/%-3/%-4+/current/" and it will map incoming traffic to a specific directory based on the URL.

nginx supports regular expression captures for server name:
http://nginx.org/en/docs/http/server_names.html#regex_names


--
Igor Sysoev
http://sysoev.ru/en/

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Virtual Document Root

Blake Scrivner January 22, 2011 02:36AM

Re: Virtual Document Root

Igor Sysoev January 22, 2011 02:56AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 128
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