Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- listen 443 ssl;
- server_name feedr.pieterhordijk.com;
- ssl_certificate /etc/ssl/certs/pieterhordijk_com.chained.crt;
- ssl_certificate_key /etc/ssl/certs/pieterhordijk_com.key;
- include ssl_defaults;
- root /srv/www/Feedr/public;
- access_log /var/log/nginx/feedr.pieterhordijk.com-access.log;
- error_log /var/log/nginx/feedr.pieterhordijk.com-error.log error;
- if ($ssl_protocol = "") {
- rewrite ^ https://$server_name$request_uri? permanent;
- }
- 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; }
- types {
- text/css css;
- application/atom+xml xml;
- }
- location ~* .(js|png|jpg|jpeg|gif|ico|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 ~ ^/(.*).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