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: apache as reverse proxy server
Author
DouglasJ



Joined: 17 May 2006
Posts: 2
Location: Michigan, USA

PostPosted: Wed 17 May '06 6:14    Post subject: apache as reverse proxy server Reply with quote

I want to expose my intranet site to the public internet for remote users. I can authenticate my users. However I really do not want to do this without using an encrypted connection. I’ve got everything I need to run a reverse proxy server. It’s this httpd.conf file. All the samples I find say things like “add these directives to your configuration file”. What I do not find is what directives I can leave out. So here is the question in a nut shell – can anyone provide a “complete” sample configuration file to run a reverse proxy?.
Back to top
DouglasJ



Joined: 17 May 2006
Posts: 2
Location: Michigan, USA

PostPosted: Wed 24 May '06 13:28    Post subject: Answered my own question - here it is Reply with quote

Your comments/questions are welcome.


##load modules
LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
LoadModule proxy_connect_module modules/mod_proxy_connect.so
LoadModule headers_module modules/mod_headers.so
LoadModule deflate_module modules/mod_deflate.so
LoadModule proxy_html_module modules/mod_proxy_html/mod_proxy_html.so
LoadModule ssl_module modules/mod_ssl.so


##Directives
ServerName My-Server-Name
Listen 443
ProxyRequests off
ProxyHTMLLogVerbose On
LogLevel Debug

SSLMutex default
SSLRandomSeed startup builtin
SSLSessionCache none

SSLEngine On
SSLCertificateFile conf/ssl/my-server.cert
SSLCertificateKeyFile conf/ssl/my-server.key

ProxyPass / http://172.25.40.5/
ProxyHTMLURLMap http://172.25.40.5 /

<Location /Intranet>
ProxyPassReverse /
SetOutputFilter proxy-html
ProxyHTMLUrlMap / /
ProxyHTMLUrlMap / /
RequestHeader unset Accept-Encoding
</Location>
Back to top


Reply to topic   Topic: apache as reverse proxy server View previous topic :: View next topic
Post new topic   Forum Index -> Apache