mirror of
https://github.com/linuxserver/reverse-proxy-confs.git
synced 2026-02-05 03:13:27 +08:00
Merge pull request #141 from HalianElf/master
Fix for 404 and PHP errors
This commit is contained in:
commit
cea9c283b5
@ -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…
x
Reference in New Issue
Block a user