Forum: NGINX set directive issues

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Victor I. (Guest)
on 2009-04-20 08:45
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?
Victor I. (Guest)
on 2009-04-20 08:54
nevermind, figured it out

            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;
                break;
            }

Please disregard that message.
This topic is locked and can not be replied to.