Apache Lounge


About Forum Index Downloads Search Register Log in  RSS Apache Lounge  

Keep Server Online

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



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: Apache Reverse Proxy - 2 servers

Joined: 06 Jun 2020
Posts: 1
Location: Sydney

PostPosted: Sun 07 Jun '20 4:22    Post subject: Apache Reverse Proxy - 2 servers Reply with quote

I hope the following is enough information as its my first post.

I need help with configuration of my Apache server & reverse proxy settings.
I want to use Server1 as a proxy server & serve a website from Server2 all via port 80 on Server1. This is my current configuration:-

Server1: Windows 10 Pro (internal IP
WAMP Apache V2.4.41
Connected to internet via modem and listening on port 80
‘Hello world’ test page working correctly via www.myexample.com & demo.myexample.com so IP address,DNS & firewalls correctly configured.
Document folder is C:\wamp\www on Server1

Server2: Windows 10 Pro (internal IP address
WAMP Apache V2.4.41
Connected to internet via modem and currently listening on port 81
Website is served correctly via myexample.com:81/grum/
Website is also accessible via from Server2 on the internal network
Document folder is C:\wamp\www\grum on Server2

I want server1 to point demo.myexample.com to server2 to serve the page.

I have currently
enabled the modules in httpd.conf and restarted Apache in Server1
Pointed demo A record to correct external IP address
Updated the httpd.vhost.conf file as follows:-

# Virtual Hosts
<VirtualHost *:80>
ServerName localhost
ServerAlias localhost
DocumentRoot "${INSTALL_DIR}/www"
<Directory "${INSTALL_DIR}/www/">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require all granted
ServerName demo.myexample.com
ServerAlias demo
DocumentRoot "C:/wamp/www/grum"
ProxyPreserveHost On
ProxyRequests On
Order deny,allow
Allow from all
ProxyPass /
ProxyPassReverse /

I have tried a number of different options but cant get it to work. Any pointers would be appreciated.
Back to top
James Blond

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

PostPosted: Mon 08 Jun '20 12:21    Post subject: Reply with quote

there are a lot of topics in this forum about that topic. You can use the google search to find them

https://www.google.com/?q=site:apachelounge.com reverse proxy

If you still have a question please ask again.
Back to top

Reply to topic   Topic: Apache Reverse Proxy - 2 servers View previous topic :: View next topic
Post new topic   Forum Index -> Apache