Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- server {
- listen 80;
- server_name localhost;
- location / {
- root /usr/share/nginx/html/web;
- index index.html;
- }
- error_page 500 502 503 504 404 /error.html;
- location = /error.html {
- root /usr/share/nginx/html;
- internal;
- }
- location = /team.pdf {
- return 301 /;
- }
- location = /node {
- root /usr/share/nginx/html;
- internal;
- return 301 /node.html;
- }
- location ~* \.(js|css|png|jpg|jpeg|gif|svg|ico)$ {
- expires 30d;
- add_header Cache-Control "public, no-transform";
- }
- location ~* \.(jpg|jpeg|gif|png|svg)$ {
- expires 365d;
- }
- location ~* \.(pdf|css|html|js|swf)$ {
- expires 2d;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement