Page 1 of 1

VHost help

Posted: Tue Mar 24, 2015 7:31 pm
by adrien80080
Hello all,
before to explain my problem, i inform you when my english is very bad. In fact, I'm french.

I have installed VestaCP in my server 1. (7 Domain name)
I have installed a cloud OS in my server 2. (cloudr.tk domain name)

The server 1 use a 80 and 443 ports
The server 2 use a 8000 port because in my firewall, the 80 port is already used.

it's possible to the cloud.tk redirect to the server 1, and the server 1 redirect to the server 2 if the cloudr.tk domain name is entered ?
I need this config for use the 80 port for multiple (2) lan IP

Thanks in advance for any help !

Re: VHost help

Posted: Wed Mar 25, 2015 4:22 pm
by skurudo
If I'm understand right, you need to proxy requests from one server to another.

You can do it with nginx:

Code: Select all

   location / {
        proxy_pass      http://server2ip:port;
        location ~* ^.+\.(jpeg|jpg|png|gif|bmp|ico|svg|tif|tiff|css|js|htm|html|ttf|otf|webp|woff|txt|csv|rtf|doc|docx|xls|xlsx|ppt|pptx|odf|odp|ods|odt|pdf|psd|ai|eot|eps|ps|zip|tar|tgz|gz|rar|bz$

...massive skip...

        }
    }
Correct? Or you have more specific task?