Skip to content

Commit b76aab0

Browse files
committed
wip
1 parent 7a34568 commit b76aab0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

conf-web/nginx.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ server {
99
include /home/%user%/conf/web/webdav-%user%.%domain%/nginx.forcessl.conf*;
1010

1111
location / {
12-
proxy_pass http://127.0.0.1:%port%;
12+
proxy_pass http://%ip%:%port%;
1313
location ~* ^.+\.(jpg|jpeg|webp|gif|png|ico|svg|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|odt|ods|odp|odf|tar|wav|bmp|rtf|js|mp3|avi|mpeg|flv|html|htm|woff|woff2|ttf)$ {
1414
root /home/%user%/web;
1515
access_log /var/log/apache2/domains/webdev-%user%.%domain%.log combined;
@@ -24,7 +24,7 @@ server {
2424
}
2525

2626
location @fallback {
27-
proxy_pass http://127.0.0.1:%port%;
27+
proxy_pass http://%ip%:%port%;
2828
}
2929

3030
location ~ /\.(?!well-known\/|file) {

conf-web/nginx.ssl.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ server {
1818
include /home/%user%/conf/web/webdav-%user%.%domain%/nginx.hsts.conf*;
1919

2020
location / {
21-
proxy_pass http://127.0.0.1:%port%;
21+
proxy_pass http://%ip%:%port%;
2222
location ~* ^.+\.(jpg|jpeg|webp|gif|png|ico|svg|css|zip|tgz|gz|rar|bz2|doc|xls|exe|pdf|ppt|txt|odt|ods|odp|odf|tar|wav|bmp|rtf|js|mp3|avi|mpeg|flv|html|htm|woff|woff2|ttf)$ {
2323
root /home/%user%/web;
2424
access_log /var/log/apache2/domains/webdav-%user%.%domain%.log combined;
@@ -33,7 +33,7 @@ server {
3333
}
3434

3535
location @fallback {
36-
proxy_pass https://127.0.0.1:%port%;
36+
proxy_pass https://%ip%:%port%;
3737
}
3838

3939
location ~ /\.(?!well-known\/|file) {

0 commit comments

Comments
 (0)