Romaytech's picture

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

Forum: 
Romaytech's picture

UPDATE:

I did some reading in the forum and saw about the firewall on TurnKeyLXC, I turned it on and now when I goto mydomain.com I goto the Webmin login page, not to my wordpress site. I am getting close.

 

 

 

Jeremy Davis's picture

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.

Romaytech's picture

Hello All,

 

Thank you for the advise, but it did not work. I ended up just redoing every thing from scratch, and low and behold it worked. I am not sure if it was something I did experimenting as I am new to Linux Containers or what, but that is why I decided to start totally from scratch.

Jeremy Davis's picture

Thanks for confirming that the docs work when done from scratch. I suspect that you are right, and there was a tweak that you did that broke something... Anyway, glad to hear that you are now up and running and it's working as expected.

Add new comment