Keep Server Online
If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
or
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.
| |
|
Topic: mod_proxy (reverse proxy URL same as backend server URL) |
|
Author |
|
mokfarg
Joined: 16 Jan 2019 Posts: 4 Location: USA, Colorado
|
Posted: Mon 18 Feb '19 5:26 Post subject: mod_proxy (reverse proxy URL same as backend server URL) |
|
|
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
|
Posted: Mon 18 Feb '19 18:50 Post subject: |
|
|
Issues resolved, was missing / after FQDN preventing recursive |
|
Back to top |
|
|
|
|
|
|