Advertisement
alanvo

Untitled

Jan 13th, 2014
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. server {
  2.         listen   8000;
  3.  
  4.         root /var/www/;
  5.         index index.php index.html index.htm;
  6.  
  7.         server_name rentsites.com.au;
  8.  
  9.         location / {
  10.         try_files $uri $uri/ /index.php;
  11.         }
  12.  
  13.         location ~ \.php$ {
  14.        
  15.         proxy_set_header X-Real-IP  $remote_addr;
  16.         proxy_set_header X-Forwarded-For $remote_addr;
  17.         proxy_set_header Host $host;
  18.         proxy_pass http://127.0.0.1:8001;
  19.  
  20.         }
  21.  
  22.         location ~ /\.ht {
  23.                 deny all;
  24.         }
  25.        
  26.         location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
  27.             expires 365d;
  28.             add_header Pragma public;
  29.             add_header Cache-Control "public";
  30.        
  31.         }
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement