Welcome! Log In Create A New Profile

Advanced

Re: Set location based on query arg

November 10, 2016 06:46PM
Here is what I want to do, in nginx conf language:

server {
listen 80;

server_name www.example.com;

# root when path query arg is present
if ($arg_path) {
root /var/www/example/$arg_path;
}

# root when path query arg is not present (default)
if (!$arg_path) {
root /var/www/example/default;
}
}
Subject Author Posted

Set location based on query arg

ulik November 10, 2016 03:04PM

Re: Set location based on query arg

Francis Daly November 10, 2016 05:22PM

Re: Set location based on query arg

ulik November 10, 2016 06:46PM

Re: Set location based on query arg

Francis Daly November 11, 2016 03:32AM

Re: Set location based on query arg

Francis Daly November 11, 2016 03:42AM

Re: Set location based on query arg

ulik November 11, 2016 12:34PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 96
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready