Forum archive
SOLVED}turnkeyLXC nginx-proxy proxy_pass not functioning for me. <<<newb
I have the TurnkeyLXC on baremetal with several APPs and really have been impressed with the ease of installation. I will be needing to serve via http/https more than one APP on a network limited to one public ipaddr. I am attempting to use the nginx proxy_pass function and have been having quite a struggle.
I ran the binary nginx-proxy using my fqdn domain with and without the www. in the domain -d --domain option and both wp1 and wordpress as the -n --name option. the resulting /etc/nginx/sites-enabled file results in passing to http://wordpress or http:wp1 which i found odd. I replace ipaddr of APP and have tried many options. I believe the dnsmasq or hosts files may be configured wrong as I get lxc as hostname -f and dnsdomainname does show my domain but domainname returns none as does nisdomainname. could someone please try to add some clarity to this for me. here is some info about my present setupl
in the root lxc
etc/hosts/
127.0.0.1 localhost
127.0.1.1 lxc.mydomain.com lxc
hostname returns lxc, hostname -f returns lxc.mydomain.com
etc/nginx/sites-enabled/mydomain.com
server {
listen 80;
server_name mydomain.com;
location / {
include /etc/nginx/include/proxy;
proxy_pass http://wordpress;
}
}
server {
I left out the rest for brevity
so in my frustration,,, I installed lynx text based web browser on the root system, and was able to to browse to http://wordpress/ site , as well as http://www.mydomain.com passed successfully to wordpress as presented in the nginx-proxy binary generated conf file. so the proxy is working, however only locally within the root system. On my workstation the page always results with server took too long error. Not sure where to look now, as I am assuming that the proxy is functioning as it should.