httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Pyeron" <jpye...@pdinc.us>
Subject RE: [users@httpd] reverse proxy and liferay
Date Mon, 25 Apr 2011 03:51:00 GMT
> -----Original Message-----
> From: Jorge Infante Osorio 
> Sent: Sunday, April 24, 2011 19:03
> To: users@httpd.apache.org
> Subject: [users@httpd] reverse proxy and liferay
> 
> Hi folk.
> 
> I´m try to expose a Liferay server to internet using an 
> apache reverse proxy.
> 
> My problem are with the URL in the response body. My 
> configuration is this:

Do you have a reason not to use mod_proxy_ajp?

> 
> The server name is proxy.
> 
> Config:
> ------------------------------------------------------------------
> LoadModule proxy_module      /usr/lib/apache2/modules/mod_proxy.so
> LoadModule proxy_http_module 
> /usr/lib/apache2/modules/mod_proxy_http.so
> LoadModule headers_module    /usr/lib/apache2/modules/mod_headers.so
> 
> LoadFile                     /usr/lib/libxml2.so
> LoadModule proxy_html_module 
> /usr/lib/apache2/modules/mod_proxy_html.so
> LoadModule xml2enc_module    /usr/lib/apache2/modules/mod_xml2enc.so
> LoadModule ssl_module        /usr/lib/apache2/modules/mod_ssl.so
> 
> LoadModule substitute_module 
> /usr/lib/apache2/modules/mod_substitute.so
> LoadModule filter_module     /usr/lib/apache2/modules/mod_filter.so
> 
> # Prevent Apache from acting like a forward proxy ProxyRequests off
> 
> ProxyPreserveHost Off
> 
> ProxyPass        /liferay2/    http://casaf.uci.cu:8072/
> ProxyPassReverse /liferay2/    http://casaf.uci.cu:8072/
> 
> <Location  /liferay2/ >
> 
> Requestheader unset Accept-Encoding
> 
> AddOutputFilterByType SUBSTITUTE text/html
> 
> Substitute "s|proxy|proxy/liferay2|n"
> Substitute "s|casaf.uci.cu:8072|proxy/liferay2|n"
> 
> </Location>
> 
> .....
> #Some others config for another sites.
> ------------------------------------------------------------------
> 
> In some case the links in my pages reference to 
> http://proxy/someoneelse/ but http://proxy/liferay2/someoneelse/
> 
> And in some case the links in my pages reference to 
> http://casaf.uci.cu:8072/someoneelse/ but 
> http://proxy/liferay2/someoneelse/
> 
> Any help?
> 
> Thanks,
> Ing. Jorge Infante Osorio.
> J´Dpto Soluciones SOA.
> CDAE.
> UCI
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 




--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
-                                                               -
- Jason Pyeron                      PD Inc. http://www.pdinc.us -
- Principal Consultant              10 West 24th Street #100    -
- +1 (443) 269-1555 x333            Baltimore, Maryland 21218   -
-                                                               -
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
This message is copyright PD Inc, subject to license 20080407P00.

 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message