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.
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:
–
Igor S.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.