Use rewrite /blog to transparently proxy to another app

Igor Sysoev igor at sysoev.ru
Tue Aug 3 22:49:07 MSD 2010


On Tue, Aug 03, 2010 at 08:45:54PM +0200, Fernando Perez wrote:

> How to intercept blog.*?
> 
> 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;
       }
   }


-- 
Igor Sysoev
http://sysoev.ru/en/



More information about the nginx mailing list