Quantcast
Channel: Nginx Forum - How to...
Viewing all articles
Browse latest Browse all 4759

Point NGINX to Wordpress Docker Port

$
0
0
Hi,

I want to point mein website www.example.com to my wordpress docker container. Rigth now my config file looks as follows:

server {
listen 80;
server_name www.example.com example.com;
index index.php index.html;

location / {
proxy_pass http://localhost:8080;
include /etc/nginx/proxy_params;
}

That works but the webserver always rewrites the URL to www.example.com:8080 I don't want it that way. Is there an other way to simply point my website to the wordpress docker port? I also want to force https for at least www.example.com/wp-admin/ how is that possible?

Viewing all articles
Browse latest Browse all 4759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>