Skip to content

Nginx vhost configuration

shai-weinstein edited this page Aug 3, 2013 · 3 revisions

nginx example of vhost configuration:

server {
   listen       80;
   server_name  m.yourdomain.org;
   #mean
   location ~* ^/(css|humans\.txt|img|js|lib|robots\.txt|views) {
     rewrite  ^/(.*)$ /var/www/mean/public/$1 break;
   }
   location ~* / {
     proxy_pass http://localhost:3000;
   }
}
Clone this wiki locally