Advertisement
elpewpew

NGINX DO Config

Jun 17th, 2014
230
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.45 KB | None | 0 0
  1. #NGINX CONFIG FILE
  2.  
  3. server {
  4.     listen 80;
  5.     server_name domain.com;
  6.  
  7.     location / {
  8.         root /path/to/web/files;
  9.         index index.html index.htm;
  10.     }
  11. }
  12.  
  13. server {
  14.         listen 80;
  15.         server_name blog.domain.com;
  16.         access_log /var/log/nginx/ghost.log;
  17.  
  18.     client_max_body_size 10M;
  19.     location / {
  20.         proxy_set_header   HOST      $http_host;
  21.         proxy_pass         http://localhost:2368/;
  22.         proxy_redirect     off;
  23.     }
  24.  
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement