Jump to content

Apache reverse proxy


rebrokenglass

Recommended Posts

I am struggling with my share point reverse proxy. My http.conf has this:

 

# rev proxy

#LoadModule proxy_module modules/mod_proxy.so

#LoadModule proxy_http_module modules/mod_proxy_http.so

 

<VirtualHost docmanager>

                ProxyRequests Off

                ProxyVia On

                ServerName docmanager

                <Proxy *>

                        Order Deny,Allow

                        Allow from all

                </Proxy>

                ProxyPass /docmanager http://10.1.1.180/

                ProxyPassReverse /docmanager http://10.1.1.180/

 

        #RewriteEngine On

        #RewriteCond %{SERVER_PORT} !443

        #RewriteRule ^(.*)$ https://urlhere.com/$1 [R,L]

</VirtualHost>

 

I also have this same configuration in my mods-enabled. For some reason it does nothing. The localhost running apache servers up an internal portal. I made a directory just in case called /docmanager. I should be able to reference this from the portal, but I am not able to, Apache just tells me that /docmanager is not found. Has anyone had any experience with reverse proxy and sharepoint? Is it as easy as it sounds?

 

Link to comment
https://forums.phpfreaks.com/topic/102234-apache-reverse-proxy/
Share on other sites

Yes, its very easy....when its setup correctly.

 

You can even use a .htaccess file!

See: http://wiki.kartbuilding.net/index.php/Apache#Apache_Rewrite_via_mod_proxy

 

 

mkdir /home/user/public_html/internalweb

vi /home/user/public_html/internalweb/.htaccess

RewriteEngine on

Rewriterule ^(.*)$ http://192.168.20.20/$1 [P]

 

 

 

-steve

Link to comment
https://forums.phpfreaks.com/topic/102234-apache-reverse-proxy/#findComment-523885
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.