rewrite catch all subdomain

Denis S. Filimonov den.lists at gmail.com
Mon Mar 10 19:33:13 MSK 2008


Try this:

location / {
    rewrite .* http://mydomain.com:8080$uri last;
}

On Monday 10 March 2008 12:22:38 Pedro Axl wrote:
> Hi,
>
> I'm having some troubles trying to catch all anything in the subdomain
> and redirect to mydomain.com:8080.
>
> It should be simple but I try somethings but I couldn't made it work.
>
>
> Thank you



-- 
Denis.





More information about the nginx mailing list