2012-12-17 40 views
0

我正在尝试为apache2实现重定向t tomcat.I想要这样一个url:share.com要打开到alfresco登录页面,但是目前我必须使用如下所示的url:APACHE重定向到使用MOD_PROXY的TOMCAT

share.com/share/ . 

我已经做了研究,我实现了删除URL中的8080端口:

share.com:8080/share/ 

仅剩的/股;我怎样才能删除/共享部分呢?

回答

1

我相信你正在尝试做的事情可以通过ProxyPass来实现。以下条目将导致一切进入Tomcat /共享。

ProxyPass/http://localhost:8080/share 
ProxyPassReverse/http://localhost:8080/share 

对于上述工作,mod_proxy_http将需要安装和加载。这既可以在conf文件动态加载配置行来完成:

LoadModule proxy_http_module modules/mod_proxy_http.so 

或编译到Apache中:

./httpd -l | grep proxy 
mod_proxy.c 
mod_proxy_connect.c 
mod_proxy_ftp.c 
mod_proxy_http.c 
mod_proxy_scgi.c 
mod_proxy_ajp.c 
mod_proxy_balancer.c