logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Reverse proxy not working - Apache 2.4 Debian 8
Author
Usernamehere



Joined: 29 Jan 2016
Posts: 1

PostPosted: Fri 29 Jan '16 21:19    Post subject: Reverse proxy not working - Apache 2.4 Debian 8 Reply with quote

I have enabled

sudo a2enmod proxy
sudo a2enmod proxy_http
sudo a2enmod proxy_wstunnel

virtualhost.conf file contents

Code:
ProxyRequests off

<Proxy *>
    Order deny,allow
    Allow from all
</Proxy>
ProxyPass/socket.io/1/websocketws:/myserverip:4567/socket.io/1/websocket   
ProxyPassReverse /socket.io/1/websocketws://myserverip:4567/socket.io/1/websocket

ProxyPass /socket.io/ http://myserverip:4567/socket.io/ 
ProxyPassReverse /socket.io/ http://myserverip:4567/socket.io/

ProxyPass / http://myserverip:4567/
ProxyPassReverse / http://myserverip:4567/


I'm trying to get my subdomain to point to my forum on ip:4567, as of now my subdomain only points to my ip. Any idea why it's not working?
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7371
Location: Germany, Next to Hamburg

PostPosted: Thu 04 Feb '16 17:04    Post subject: Reply with quote

The code you posted is a mit mangled... however you have to put the reverse proxy code into a vhost container and not in the global context.
Back to top


Reply to topic   Topic: Reverse proxy not working - Apache 2.4 Debian 8 View previous topic :: View next topic
Post new topic   Forum Index -> Apache