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 -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: mod_proxy (reverse proxy URL same as backend server URL)
Author
mokfarg



Joined: 16 Jan 2019
Posts: 4
Location: USA, Colorado

PostPosted: Mon 18 Feb '19 5:26    Post subject: mod_proxy (reverse proxy URL same as backend server URL) Reply with quote

New to Apache as a reverse proxy. The origin servers I wish to proxy are listening for the same URL that the Apache reverse proxy server will have a DNS A record for when proxy goes live. Currently the server isn't being proxied, it is externally facing. How would one accomplish this? I have searched the web for ideas but haven't entered to correct key terms to find anything relevant. What I have tried so far hasn't worked. (Entered the origin IPs instead of URL etc.)

Example
<VirtualHost *:443>
ServerName www.example.com
SSLEngine On
ProxyPreserveHost On
ProxyPass "/" "https://www.example.com"
ProxyPassReverse "/" "https://www.example.com
DocumentRoot /var/www/html
SSLProxyEngine on
SSLCertificateFile /etc/ssl/certs/example.pem
SSLCertificateKeyFile /etc/ssl/private/example.key
</VirtualHost>
Back to top
mokfarg



Joined: 16 Jan 2019
Posts: 4
Location: USA, Colorado

PostPosted: Mon 18 Feb '19 18:50    Post subject: Reply with quote

Issues resolved, was missing / after FQDN preventing recursive
Back to top


Reply to topic   Topic: mod_proxy (reverse proxy URL same as backend server URL) View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules