Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 127.0.0.1:8080;
- server_name holi-gaudy.com www.holi-gaudy.com;
- server_tokens off;
- port_in_redirect off;
- access_log /var/log/nginx/holi-gaudy.com/access.log;
- error_log /var/log/nginx/holi-gaudy.com/error.log;
- root /var/www/virtual/holi-gaudy.com/htdocs/;
- index index.php;
- include pagespeed_full.conf;
- pagespeed MapOriginDomain http://127.0.0.1:8080 http://holi-gaudy.com;
- location / {
- try_files $uri $uri/ /index.php?q=$uri;
- }
- location ~ \.php$ {
- include fastcgi_params;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_pass unix:/var/run/php5-fpm.sock;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|ico|webp)$ {
- expires 8d;
- log_not_found off;
- gzip on;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement