Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section General Discussion RHEL/CentOS
  • Search

VHost help

RHEL/CentOS related topics
Locked
  • Print view
Advanced search
2 posts • Page 1 of 1
adrien80080
Posts: 6
Joined: Thu Mar 05, 2015 11:29 pm

VHost help

Post by adrien80080 » Tue Mar 24, 2015 7:31 pm

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 !
Top

skurudo
VestaCP Team
Posts: 8099
Joined: Fri Dec 26, 2014 2:23 pm
Contact:
Contact skurudo
Website Facebook Google+ Skype
Twitter

Re: VHost help

Post by skurudo » Wed Mar 25, 2015 4:22 pm

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?
Top


Locked
  • Print view

2 posts • Page 1 of 1

Return to “RHEL/CentOS”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password