Advertisement
shakalandy

nginx config

Mar 26th, 2014
152
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.94 KB | None | 0 0
  1. server {
  2.         listen  127.0.0.1:8080;
  3.         server_name holi-gaudy.com www.holi-gaudy.com;
  4.         server_tokens off;
  5.         port_in_redirect off;
  6.         access_log  /var/log/nginx/holi-gaudy.com/access.log;
  7.         error_log  /var/log/nginx/holi-gaudy.com/error.log;
  8.  
  9.  
  10.         root    /var/www/virtual/holi-gaudy.com/htdocs/;
  11.         index   index.php;
  12.         include pagespeed_full.conf;
  13.         pagespeed MapOriginDomain http://127.0.0.1:8080 http://holi-gaudy.com;
  14.  
  15.     location / {
  16.             try_files $uri $uri/ /index.php?q=$uri;
  17.     }
  18.  
  19.  
  20.         location ~ \.php$ {
  21.                 include fastcgi_params;
  22.                 fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  23.                 fastcgi_pass unix:/var/run/php5-fpm.sock;
  24.         }
  25.  
  26.         location ~* \.(js|css|png|jpg|jpeg|gif|ico|webp)$ {
  27.                 expires 8d;
  28.                 log_not_found off;
  29.                  gzip  on;
  30.         }
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement