Welcome! Log In Create A New Profile

Advanced

set directive issues

Victor Iggy
April 20, 2009 12:45AM
set $full_uri "$host/$request_uri";
if ($full_uri ~* "(.*)\.fabulously40.com") {
set $username_host $1;
proxy_pass http://127.0.0.1:8089/view/blog/user/$username_host;
}

I am trying to set $full_uri to both the arguments in a location block.
However, $full_uri is always "/"

This is driving me nuts.

I am trying to map.. <username>.fabulously40.com to
fabulously40.com/view/blog/user/$username

If anyone can help?
--
Posted via http://www.ruby-forum.com/.
Subject Author Posted

set directive issues

Victor Iggy April 20, 2009 12:45AM

Re: set directive issues

Victor Iggy April 20, 2009 12:54AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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