Files
quikcue-site/nginx.conf
T

40 lines
985 B
Nginx Configuration File

server {
listen 80;
server_name www.quikcue.com;
return 301 https://quikcue.com$request_uri;
}
server {
listen 80;
server_name quikcue.com;
root /usr/share/nginx/html;
index index.html;
absolute_redirect off;
# Redirect /work/ to first case study (no bare index = was 403)
location = /work/ {
return 301 /work/charityright/;
}
location / {
try_files $uri $uri/ $uri/index.html /index.html;
}
location /css/ {
expires 7d;
add_header Cache-Control "public, immutable";
}
add_header X-Frame-Options "SAMEORIGIN" always;
add_header X-Content-Type-Options "nosniff" always;
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
add_header Strict-Transport-Security "max-age=31536000; includeSubDomains; preload" always;
gzip on;
gzip_types text/html text/css application/javascript text/plain;
gzip_min_length 256;
error_page 404 /404.html;
}