Relative Content

Tag Archive for nginxnginx-reverse-proxy

Adding additional config results in 404 error

server_name example.com; root /var/www/html; index index.html index.htm index.nginx-debian.html; location ^~ /dashboard/ { alias /var/www/html/; try_files $uri $uri/ /index.html; } Above is a Nginx configuration. When https://example.com/dashboard/ is called, it properly shows the website from /var/www/html. However, when following location / configuration is included, the same URL results in “Failed to load resource: the server responded […]