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 Web Server
  • Search

Reverse Proxy on the subdomain

Questions regarding the Web Server
Apache + Nginx, Nginx + PHP5-FPM
Post Reply
  • Print view
Advanced search
8 posts • Page 1 of 1
mojtaba472
Posts: 9
Joined: Tue Aug 23, 2016 1:13 am

Reverse Proxy on the subdomain
  • Quote

Post by 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
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Reverse Proxy on the subdomain
  • Quote

Post by 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
viewtopic.php?t=10219

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

Should work easy
Top

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

Re: Reverse Proxy on the subdomain
  • Quote

Post by 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.
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Reverse Proxy on the subdomain
  • Quote

Post by mehargags » Sun Sep 10, 2017 12:38 pm

Yes exactly how I wrote...
Top

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

Os: Debian 8x
Web: apache + nginx
Re: Reverse Proxy on the subdomain
  • Quote

Post by 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.
Top

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

Re: Reverse Proxy on the subdomain
  • Quote

Post by 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.
Top

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

Re: Reverse Proxy on the subdomain
  • Quote

Post by mojtaba472 » Sun Sep 10, 2017 8:12 pm

mehargags wrote:Yes exactly how I wrote...

apache Down....
Top

mehargags
Support team
Posts: 1096
Joined: Sat Sep 06, 2014 9:58 pm
Contact:
Contact mehargags
Website Skype

Os: Debian 8x
Web: apache + nginx
Re: Reverse Proxy on the subdomain
  • Quote

Post by mehargags » Tue Sep 12, 2017 2:27 pm

so check apache error log and see what is wrong
Top


Post Reply
  • Print view

8 posts • Page 1 of 1

Return to “Web Server”



  • 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