Page 1 of 1

Reverse Proxy on the subdomain

Posted: Sat Sep 09, 2017 12:45 pm
by mojtaba472
Hello
Good time
I want to do https://vip.tvhome.me/ Reverse Proxy on the subdomain.
ip and my port is http://148.251.187.58:8096.
How can I do this?

Thank

Re: Reverse Proxy on the subdomain

Posted: Sat Sep 09, 2017 4:01 pm
by mehargags
Your question is not very clear but what I understand, you need to

configure Apache to run on 8096
viewtopic.php?t=10219

Make sure your site vip.tvhome.me is running on IP 148.251.187.58

Should work easy

Re: Reverse Proxy on the subdomain

Posted: Sat Sep 09, 2017 5:08 pm
by mojtaba472
mehargags wrote:Your question is not very clear but what I understand, you need to

configure Apache to run on 8096
viewtopic.php?t=10219

Make sure your site vip.tvhome.me is running on IP 148.251.187.58

Should work easy
Hello
I'm going to open the page that is located at ip: 148.251.187.58:8096 when I enter https://vip.tvhome.me.
I use vestacp with default settings.
How do you think I can do this?
I saw a few sites after studying using Reverse Proxy to do this.

Re: Reverse Proxy on the subdomain

Posted: Sun Sep 10, 2017 12:38 pm
by mehargags
Yes exactly how I wrote...

Re: Reverse Proxy on the subdomain

Posted: Sun Sep 10, 2017 2:54 pm
by kenneth
If you're running nginx you can paste this in your nginx config /etc/nginx/conf/your.ip.conf
Just make sure to edit listen ip with your own.

Code: Select all

server {
    listen       52.0.14.116:80;
    server_name  vip.tvhome.me;
    location / {
    proxy_pass  http://148.251.187.58:8096
   }
}
Reload nginx service and you'r up and running
Make note, this will not work with ssl.

Re: Reverse Proxy on the subdomain

Posted: Sun Sep 10, 2017 8:02 pm
by mojtaba472
kenneth wrote:If you're running nginx you can paste this in your nginx config /etc/nginx/conf/your.ip.conf
Just make sure to edit listen ip with your own.

Code: Select all

server {
    listen       52.0.14.116:80;
    server_name  vip.tvhome.me;
    location / {
    proxy_pass  http://148.251.187.58:8096
   }
}
Reload nginx service and you'r up and running
Make note, this will not work with ssl.
Like
Excellent
Thank you for your very good answer ...

Re: Reverse Proxy on the subdomain

Posted: Sun Sep 10, 2017 8:12 pm
by mojtaba472
mehargags wrote:Yes exactly how I wrote...

apache Down....

Re: Reverse Proxy on the subdomain

Posted: Tue Sep 12, 2017 2:27 pm
by mehargags
so check apache error log and see what is wrong