Forum archive
LXC Container / NGINX help needed
Hello All,
I an using TurnKey LXC I have the main LXC with ip of 192.168.1.200 and a wordpress container also using turnkey with the ip of 192.168.1.201. I believe I set up the sites-enabled properly as I can access the wordpress site from both IP's but I am not able to access from the site name. I had port 80 forwarded to the 192.168.1.201 and I can access the site using the name and if I forward it to 192.168.1.200 I get nothing.
Here is my sites enabled (mydomin.com is not what is in the file just changed it in here):
server {
listen 80;
server_name mydomain.com;
location / {
proxy_pass http://192.168.1.201:80;
}
}
Any help in what to look for would be greatly appreciated
Thank You,
Romaytech
If you're getting Webmin rather than your server when browsing to port 80 or 443, then my guess is that it's configured for the wrong port. Have you read through the usage docs? TBH, it's been a while since I've played with the LXC appliance, but the docs should cover how to set stuff up so it "just works".
If that doesn't work as it should, or you get any errors or anything, please post back and I'll have a look into it ASAP.