Website Migration Notice: SafePoint is now operated by CyberServal.Learn more →
Discussion

SafeLine + Wordpress

Published 2 years ago

# ❓ question
# SafeLine WAF

Published 2 years ago

profile_photo

NP SPQR (Юлий)

Updated 2 years ago

0

When using WAF, the WordPress web application is missing styles. Please help
image.png

profile_photo

SafeLine-xb

Updated 2 years ago

0

try this ?
image.png

profile_photo

NP SPQR (Юлий)

Updated 2 years ago

image.png

profile_photo

SafeLine-xb

Updated 2 years ago

0

set host header to $host

profile_photo

NP SPQR (Юлий)

Updated 2 years ago

This did not help. Styles are also not displayed.

profile_photo

SafeLine-xb

Updated 2 years ago

0

use f12 to find err why css not loaded

profile_photo

NP SPQR (Юлий)

Updated 2 years ago

image.png

profile_photo

NP SPQR (Юлий)

Updated 2 years ago

0

image.png

profile_photo

SafeLine-xb

Updated 2 years ago

0

try use https://xxx as your upstream

profile_photo

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

profile_photo

SafeLine-xb

Updated 2 years ago

0

Can you get wp to run over https?

profile_photo

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.

profile_photo

SafeLine-xb

Updated 2 years ago

0

There is another solution, do not use https for waf, but use http to access like wp

profile_photo

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
image.png

profile_photo

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.

SafeLine + Wordpress | CyberServal | CyberServal