trying to install nginx with apache revers proxy, apache itself does sent to php-fpm to port 9000 on localhost

so apache http on port 8081, apache https 444

nginx 80 and nginx ssl 443

php-fpm port 9000

Via port http wordpress looks ok, if i open it via https looks like no css/js is passed through. Any suggestion?

image1 image2 image3 image4

  • 2
    Perhaps the script links are http, and your browser refuses to fetch them. Does your browser tell you the page is safe? BTW, why both nginx and apache? Use one or the other. – Gerard H. Pille Apr 28 '20 at 19:49
  • if You'll open inspector panel in browser and go to network tab, I'm sure You'll see certificate issue. Since self-signed certs not allowed by default. – num8er Apr 28 '20 at 22:40

Maybe you must set HTTP header like :

proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
add_header Front-End-Https on;

Hope this will help you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.