Showing posts with label urlrewrite. Show all posts
Showing posts with label urlrewrite. Show all posts

Friday, August 17, 2012

browser shortcut with nginx and DNS

OS: Ubuntu

DNS

/etc/hosts
127.0.0.1 foo

Nginx 

in sites-enabled/default

if ( $host = wiki ) {  
   rewrite ^ https://wiki.example.com;
}