Hi, i am just wondering. I have a tomcat5, running xwiki at http://myserver.example.org:8080/xwiki
How can i create a vhost in httpd to do transparent proxy to tomcat5 webapplication ?
Thanks in advance!
David
---------- Forwarded message ---------- From: David Hláčik david@hlacik.eu Date: Sat, Apr 5, 2008 at 10:45 PM Subject: xwiki vhost in apache To: users@xwiki.org
Hi, i have xwiki running on http://myserver.example.org:8080/xwiki (tomcat5)
I have also apache2 running on my centos5 server with virtual hosts.
I want to create a virtual host (on port 80) named wiki.example.org -- which will proxy to xwiki and action will be transparent. I found a howto on xwiki pages http://platform.xwiki.org/xwiki/bin/view/AdminGuide/Performances#HModProxyAJ... . but this config works for me without vhost only.
I have Centos 5 server ,with httpd and tomcat
Thanks in advance!
David
On Sat, 5 Apr 2008, David Hláčik wrote:
Hi, i am just wondering. I have a tomcat5, running xwiki at http://myserver.example.org:8080/xwiki How can i create a vhost in httpd to do transparent proxy to tomcat5 webapplication ?
<VirtualHost *:80> ServerName whatever.you.want RedirectMatch permanent '^//*$' /xwiki/ ProxyRequests Off ProxyPass /xwiki http://myserver.example.org:8080/xwiki ProxyPassReverse /xwiki http://myserver.example.org:8080/xwiki <Proxy *> Order deny,allow Allow from all </Proxy> </VirtualHost>
Note: make sure that mod_proxy and mod_proxy_http are loaded somewhere along the line.
Thanks Paul, this one works perfect.
D.
2008/4/6 Paul Heinlein heinlein@madboa.com:
On Sat, 5 Apr 2008, David Hláčik wrote:
Hi, i am just wondering. I have a tomcat5, running xwiki at
http://myserver.example.org:8080/xwiki How can i create a vhost in httpd to do transparent proxy to tomcat5 webapplication ?
<VirtualHost *:80> ServerName whatever.you.want RedirectMatch permanent '^//*$' /xwiki/ ProxyRequests Off ProxyPass /xwiki http://myserver.example.org:8080/xwiki ProxyPassReverse /xwiki http://myserver.example.org:8080/xwiki <Proxy *> Order deny,allow Allow from all
</Proxy> </VirtualHost>
Note: make sure that mod_proxy and mod_proxy_http are loaded somewhere along the line.
-- Paul Heinlein <> heinlein@madboa.com <> www.madboa.com _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos