Published 2 years ago
Published 2 years ago
NP SPQR (Юлий)
Updated 2 years ago
0
When using WAF, the WordPress web application is missing styles. Please help
SafeLine-xb
Updated 2 years ago
0
try this ?
NP SPQR (Юлий)
Updated 2 years ago
SafeLine-xb
Updated 2 years ago
0
set host header to $host
NP SPQR (Юлий)
Updated 2 years ago
This did not help. Styles are also not displayed.
SafeLine-xb
Updated 2 years ago
0
use f12 to find err why css not loaded
NP SPQR (Юлий)
Updated 2 years ago
NP SPQR (Юлий)
Updated 2 years ago
0
SafeLine-xb
Updated 2 years ago
0
try use https://xxx as your upstream
NP SPQR (Юлий)
Updated 2 years ago
I currently have upstream http://127.0.0.1:10001 registered. Wordpress is hosted in a docker container. If I use https://127.0.0.1:10001, then waf gives an error 502 bad gateway
SafeLine-xb
Updated 2 years ago
0
Can you get wp to run over https?
SafeLine-xb
Updated 2 years ago
0
The above styles are lost. It seems that wp does not use the https protocol you use when accessing the website, but uses http, which causes the browser security protocol to block it.
SafeLine-xb
Updated 2 years ago
0
There is another solution, do not use https for waf, but use http to access like wp
NP SPQR (Юлий)
Updated 2 years ago
0
I went into wordpress settings without styles and changed http to https. Now I get an infinite number of redirects
NP SPQR (Юлий)
Updated 2 years ago
0
In this case, Safeline and WordPress were installed on the same VDS, but in different containers. Now I have made a slightly different scheme. I have deployed WordPress on a home server. Thus, Safeline hides the real external IP of my server. And in this case, the styles work correctly.