Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 8000;
- root /var/www/;
- index index.php index.html index.htm;
- server_name rentsites.com.au;
- location / {
- try_files $uri $uri/ /index.php;
- }
- location ~ \.php$ {
- proxy_set_header X-Real-IP $remote_addr;
- proxy_set_header X-Forwarded-For $remote_addr;
- proxy_set_header Host $host;
- proxy_pass http://127.0.0.1:8001;
- }
- location ~ /\.ht {
- deny all;
- }
- location ~* \.(?:ico|css|js|gif|jpe?g|png)$ {
- expires 365d;
- add_header Pragma public;
- add_header Cache-Control "public";
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement