vocabulary/web/nginx.conf

18 lines
391 B
Nginx Configuration File
Raw Normal View History

2026-12-03 00:16:47 +03:00
server {
listen 80;
server_name localhost;
root /usr/share/nginx/html;
index index.html;
error_page 404 /404.html;
# the app is built with basePath /vocab-quiz; it also works behind a
# reverse proxy that removes this prefix
rewrite ^/vocab-quiz$ /;
rewrite ^/vocab-quiz/(.*)$ /$1;
location / {
try_files $uri $uri/index.html =404;
}
}