Hate to add another Subdomain Post
January 22, 2013 02:27PM
Hate to do this, but i've read through quite a few and nothing is working for me, so wanted to make sure i'm doing everything right before switching to Apache.

I have a domain xxx.com it forwards with masking to my router ip:80 which forwards to my 192.168.1.100:80. when i type in this address i get the welcome to nginx website as expected. I also have subdomains a.xxx.com, b.xxx.com, c.xxx,com with forwarding & mask. I go to these sites i'm greeted with the same page, all is good so far. When i try to add server blocks to reroute a.xxx.com -> http://111.111.111.111:55555/home and b.xxx.com to http://111.111.111.111:55666/home. It simply does not work locally or externally. It never reroutes. I've tried doing a rewrite and latest I tried using proxy:

server {
listen 80;
server_name a.xxx.com;
location / {
proxy_pass http://111.111.111.111:55555/home;
}

}

server {
listen 80;
server_name b.xxx.com;
location / {
proxy_passhttp://111.111.111.111:55666/home;
}

}

So confused?!?!?!
Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 185
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready