31 lines
845 B
Plaintext
31 lines
845 B
Plaintext
server {
|
|
listen 80;
|
|
server_name kikomiko.ir;
|
|
root /var/www/kikomiko;
|
|
index index.html;
|
|
|
|
location = /fa { return 301 /$is_args$args; }
|
|
location ~ ^/fa/(.*)$ { return 301 /$1$is_args$args; }
|
|
|
|
# Shared product template for all slugs (existing + newly imported)
|
|
location /products/ {
|
|
try_files $uri $uri/ /products/index.html;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
add_header Cache-Control "no-cache";
|
|
}
|
|
# Nginx static files support byte ranges for the scroll-driven video.
|
|
location /videos/ { try_files $uri =404; }
|
|
location /api/ { return 503; }
|
|
location /i/ { return 404; }
|
|
error_page 404 /404.html;
|
|
}
|
|
server {
|
|
listen 80;
|
|
server_name www.kikomiko.ir;
|
|
return 301 http://kikomiko.ir$request_uri;
|
|
}
|