mirror of
https://github.com/MrUnknownDE/utools.git
synced 2026-05-06 06:16:04 +02:00
rebase www template
This commit is contained in:
+2
-15
@@ -10,22 +10,9 @@ server {
|
||||
access_log /var/log/nginx/access.log;
|
||||
error_log /var/log/nginx/error.log;
|
||||
|
||||
# Clean URL rewrites - Map short URLs to actual HTML files
|
||||
rewrite ^/dns$ /dns-lookup.html last;
|
||||
rewrite ^/dns-lookup$ /dns-lookup.html last;
|
||||
rewrite ^/whois$ /whois-lookup.html last;
|
||||
rewrite ^/whois-lookup$ /whois-lookup.html last;
|
||||
rewrite ^/mac$ /mac-lookup.html last;
|
||||
rewrite ^/mac-lookup$ /mac-lookup.html last;
|
||||
rewrite ^/subnet$ /subnet-calculator.html last;
|
||||
rewrite ^/subnet-calculator$ /subnet-calculator.html last;
|
||||
rewrite ^/asn$ /asn-lookup.html last;
|
||||
rewrite ^/asn-lookup$ /asn-lookup.html last;
|
||||
|
||||
# Statische Dateien direkt ausliefern
|
||||
# SPA: all routes fall back to index.html; static assets are served directly
|
||||
location / {
|
||||
# First try the exact URI, then with .html, then fall back to index.html
|
||||
try_files $uri $uri.html $uri/ /index.html;
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
|
||||
# API-Anfragen an den Backend-Service weiterleiten
|
||||
|
||||
Reference in New Issue
Block a user