Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name pieterhordijk.com www.pieterhordijk.com;
- root /srv/www/www.pieterhordijk.com/public;
- access_log /var/log/nginx/pieterhordijk-access.log;
- error_log /var/log/nginx/pieterhordijk-error.log error;
- location = /favicon.ico { log_not_found off; access_log off; }
- location = /robots.txt { access_log off; log_not_found off; }
- location ~ /\. { access_log off; log_not_found off; deny all; }
- location ~ ~$ { access_log off; log_not_found off; deny all; }
- location ~ /.ht { access_log off; log_not_found off; deny all; }
- location ~* .(js|css|png|jpg|jpeg|gif|ico|xml|swf|flv|eot|ttf|woff|pdf|xls|htc)$ {
- add_header Pragma "public";
- add_header Cache-Control "public, must-revalidate, proxy-revalidate";
- access_log off;
- log_not_found off;
- expires 360d;
- }
- location ~ ^/index.php($|/) {
- fastcgi_split_path_info ^(.+\.php)(.*)$;
- fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
- fastcgi_param SCRIPT_NAME $fastcgi_script_name;
- fastcgi_param PATH_INFO $fastcgi_path_info;
- fastcgi_pass 127.0.0.1:9000;
- include fastcgi_params;
- }
- location / {
- index index.php;
- try_files $uri /index.php?$args;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement