[xwiki-users] xwiki vhost in apache
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, Apr 5, 2008 at 3:45 PM, David Hláčik <[email protected]> wrote:
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!
Hi David <VirtualHost xx.xx.xx.xx:80> ServerName domain.com ServerAlias www.domain.com RewriteRule ^/$ http://www.domain.com/xwiki ProxyPass /xwiki http://www.domain.com:8082/xwiki ProxyPassReverse /xwiki http://www.domain.com:8082/xwiki </VirtualHost> Or have a look into my Howto on HowtoForge<http://howtoforge.com/xwiki-tomcat-mysql-debian-etch>(look to the comments at the bottom, too). Hope that helps.
Thanks!, but it only works for www.domain.com/xwiki , what about only www.domain.com ? Thanks! David 2008/4/5 Squirrel <[email protected]>:
On Sat, Apr 5, 2008 at 3:45 PM, David Hláčik <[email protected]> wrote:
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!
Hi David
<VirtualHost xx.xx.xx.xx:80> ServerName domain.com ServerAlias www.domain.com RewriteRule ^/$ http://www.domain.com/xwiki ProxyPass /xwiki http://www.domain.com:8082/xwiki ProxyPassReverse /xwiki http://www.domain.com:8082/xwiki </VirtualHost>
Or have a look into my Howto on HowtoForge<http://howtoforge.com/xwiki-tomcat-mysql-debian-etch>(look to the comments at the bottom, too).
Hope that helps. _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
David Hláčik wrote:
Thanks!, but it only works for www.domain.com/xwiki , what about only www.domain.com ?
See http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs -- Sergiu Dumitriu http://purl.org/net/sergiu/
Thanks but what i mean exactly is to : redirect www.domain.com to www.domain.com:8080/xwiki/bin ..... in way to just set it in vhost My first idea was to remove /xwiki , to have it like this : <VirtualHost xx.xx.xx.xx:80> ServerName domain.com ServerAlias www.domain.com RewriteRule ^/$ http://www.domain.com ProxyPass / http://www.domain.com:8082/xwiki ProxyPassReverse / http://www.domain.com:8082/xwiki </VirtualHost> but unfurtunately, this is not working . Thanks in advance! 2008/4/6 Sergiu Dumitriu <[email protected]>:
David Hláčik wrote:
Thanks!, but it only works for www.domain.com/xwiki , what about only www.domain.com ?
See http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
2008/4/6 David Hláčik <[email protected]>:
Thanks!, but it only works for www.domain.com/xwiki , what about only www.domain.com ?
Thanks but what i mean exactly is to :
redirect www.domain.com to www.domain.com:8080/xwiki/bin ..... in way to just set it in vhost
but unfurtunately, this is not working .
Hmm..the apache setting I gave to you is perfectly working for me. Do you have the mod_alias and mod_proxy modules of Apache enabled?
Hi, thanks for your help. I did not say it is not woking. But configuration you provided me works for http://www.domain.com/xwiki , not for http://www.domain.com what i was looking for. But anyway thanks ! D. 2008/4/6 Squirrel <[email protected]>:
2008/4/6 David Hláčik <[email protected]>:
Thanks!, but it only works for www.domain.com/xwiki , what about
only
www.domain.com ?
Thanks but what i mean exactly is to :
redirect www.domain.com to www.domain.com:8080/xwiki/bin ..... in way to just set it in vhost
but unfurtunately, this is not working .
Hmm..the apache setting I gave to you is perfectly working for me. Do you have the mod_alias and mod_proxy modules of Apache enabled? _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
2008/4/6 David Hláčik <[email protected]>:
Hi, thanks for your help. I did not say it is not woking. But configuration you provided me works for http://www.domain.com/xwiki , not for http://www.domain.com what i was looking for. But anyway thanks !
D.
No, what I'm saying is, for me it is working for www.domain.com => www.domain.com:8082/xwiki/.. It must (imho) working with the given setting. would you mind to post your whole apache setting (without real domain/ip)?
participants (3)
-
David Hláčik -
Sergiu Dumitriu -
Squirrel