Use rewrite /blog to transparently proxy to another app

Fernando Perez lists at ruby-forum.com
Tue Aug 3 23:17:57 MSD 2010


>> I tried setting server_name blog.* but it doesn't seem to work.
> 
>    server {
>        server_name  blog.*;
>        location / {
>            proxy_pass         http://127.0.0.1:3000;
>            proxy_set_header  Host  $host;
>        }
>    }
> 

My bad, it does work. Thank you Igor.
-- 
Posted via http://www.ruby-forum.com/.



More information about the nginx mailing list