Reverse Proxy on the subdomain Topic is solved

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
mojtaba472
Posts: 9
Joined: Tue Aug 23, 2016 1:13 am

Reverse Proxy on the subdomain

Postby mojtaba472 » Sat Sep 09, 2017 12:45 pm

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

mehargags
Posts: 705
Joined: Sat Sep 06, 2014 9:58 pm

Re: Reverse Proxy on the subdomain

Postby mehargags » Sat Sep 09, 2017 4:01 pm

Your question is not very clear but what I understand, you need to

configure Apache to run on 8096
https://forum.vestacp.com/viewtopic.php?t=10219

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

Should work easy

mojtaba472
Posts: 9
Joined: Tue Aug 23, 2016 1:13 am

Re: Reverse Proxy on the subdomain

Postby mojtaba472 » Sat Sep 09, 2017 5:08 pm

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.

mehargags
Posts: 705
Joined: Sat Sep 06, 2014 9:58 pm

Re: Reverse Proxy on the subdomain

Postby mehargags » Sun Sep 10, 2017 12:38 pm

Yes exactly how I wrote...

kenneth
Posts: 9
Joined: Wed Sep 16, 2015 8:03 pm

Re: Reverse Proxy on the subdomain

Postby kenneth » Sun Sep 10, 2017 2:54 pm

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.

mojtaba472
Posts: 9
Joined: Tue Aug 23, 2016 1:13 am

Re: Reverse Proxy on the subdomain  Topic is solved

Postby mojtaba472 » Sun Sep 10, 2017 8:02 pm

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 ...
Last edited by mojtaba472 on Sun Sep 10, 2017 8:18 pm, edited 1 time in total.

mojtaba472
Posts: 9
Joined: Tue Aug 23, 2016 1:13 am

Re: Reverse Proxy on the subdomain

Postby mojtaba472 » Sun Sep 10, 2017 8:12 pm

mehargags wrote:Yes exactly how I wrote...


apache Down....

mehargags
Posts: 705
Joined: Sat Sep 06, 2014 9:58 pm

Re: Reverse Proxy on the subdomain

Postby mehargags » Tue Sep 12, 2017 2:27 pm

so check apache error log and see what is wrong


Return to “Web Server”



Who is online

Users browsing this forum: No registered users and 4 guests