Advertisement
Guest User

feedr server

a guest
Nov 21st, 2014
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Nginx 1.70 KB | None | 0 0
  1. server {
  2.     listen 80;
  3.     listen 443 ssl;
  4.  
  5.     server_name feedr.pieterhordijk.com;
  6.     ssl_certificate     /etc/ssl/certs/pieterhordijk_com.chained.crt;
  7.     ssl_certificate_key /etc/ssl/certs/pieterhordijk_com.key;
  8.     include ssl_defaults;
  9.  
  10.     root /srv/www/Feedr/public;
  11.     access_log /var/log/nginx/feedr.pieterhordijk.com-access.log;
  12.     error_log  /var/log/nginx/feedr.pieterhordijk.com-error.log error;
  13.  
  14.     if ($ssl_protocol = "") {
  15.        rewrite ^   https://$server_name$request_uri? permanent;
  16.     }
  17.  
  18.     location = /favicon.ico { log_not_found off; access_log off; }
  19.     location = /robots.txt  { access_log off; log_not_found off; }
  20.     location ~ /\.          { access_log off; log_not_found off; deny all; }
  21.     location ~ ~$           { access_log off; log_not_found off; deny all; }
  22.     location ~ /.ht         { access_log off; log_not_found off; deny all; }
  23.  
  24.     types {
  25.         text/css                css;
  26.         application/atom+xml    xml;
  27.     }
  28.  
  29.     location ~* .(js|png|jpg|jpeg|gif|ico|swf|flv|eot|ttf|woff|pdf|xls|htc)$ {
  30.         add_header Pragma "public";
  31.         add_header Cache-Control "public, must-revalidate, proxy-revalidate";
  32.         access_log off;
  33.         log_not_found off;
  34.         expires   360d;
  35.     }
  36.  
  37.     location ~ ^/(.*).php($|/) {
  38.         fastcgi_split_path_info ^(.+.php)(.*)$;
  39.         fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  40.         fastcgi_param SCRIPT_NAME $fastcgi_script_name;
  41.         fastcgi_param PATH_INFO $fastcgi_path_info;
  42.         fastcgi_pass   127.0.0.1:9000;
  43.         include        fastcgi_params;
  44.     }
  45.  
  46.     location / {
  47.        index index.php;
  48.             try_files $uri /index.php?$args;
  49.     }
  50. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement