We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
VHost help
-
- Posts: 6
- Joined: Thu Mar 05, 2015 11:29 pm
VHost help
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 !
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
If I'm understand right, you need to proxy requests from one server to another.
You can do it with nginx:
Correct? Or you have more specific task?
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...
}
}