mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2025-07-06 04:51:33 -07:00
Merge pull request #141 from HalianElf/master
Fix for 404 and PHP errors
This commit is contained in:
commit
cea9c283b5
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,6 @@
|
|||
# In order to use this location block you need to edit the default file one folder up and comment out the / location
|
||||
|
||||
location / {
|
||||
location ^~ / {
|
||||
# enable the next two lines for http auth
|
||||
#auth_basic "Restricted";
|
||||
#auth_basic_user_file /config/nginx/.htpasswd;
|
||||
|
@ -16,6 +16,8 @@ location / {
|
|||
set $upstream_proto http;
|
||||
proxy_pass $upstream_proto://$upstream_app:$upstream_port;
|
||||
|
||||
proxy_intercept_errors on;
|
||||
|
||||
}
|
||||
|
||||
# Optional redirect server errors to organizr error pages
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue