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. -- Posted via http://www.ruby-forum.com/.