autowp/autowp-frontend

View on GitHub
etc/nginx/conf.d/default.conf

Summary

Maintainability
Test Coverage
server {
listen 8080 default_server;
 
root /usr/share/nginx/html/$lang;
 
location = /index.html {
add_header Cache-Control "public, must-revalidate";
}
 
location / {
try_files $uri $uri/ /index.html =404;
}
 
location = /robots.txt {
expires 7d;
 
try_files /robots/$http_host.txt /robots/robots.txt;
}
 
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root /usr/share/nginx/html;
}
}