So when you mentioned "accessible from the root path of the domain", you
only wanted a have a redirection, right? We (at least I) understood that
you wanted to have URL like that:
>
> http://wiki.yourdomain.com/bin/view/Main/

instead of

> http://wiki.yourdomain.com/xwiki/bin/view/Main/


If you only wanted to use a redirection, then sure, Apache is the quickest
method to use. In the case you absolutely wanted to use Tomcat as
front-end, you could use UrlRewrite For
Tomcat<http://www.tuckey.org/urlrewrite/>.
It's like an implementation of mod_rewrite, for Tomcat.

Enjoy your wiki!

Guillaume

2013/2/20 Andrew Havens <[email protected]>

> I was able to accomplish what I wanted (remove the port from the url and
> make it accessible from the root path of the domain. Here's what I did (on
> Ubuntu linux):
>
> install apache: sudo apt-get install apache2-mpm-prefork
> enable some apache modules: sudo a2enmod proxy_http
> Create a virtual host file in /etc/apache2/sites-available with the
> following contents:
>
> <VirtualHost *:80>
>     ServerName wiki.yourdomain.com
>     DocumentRoot /var/www
>     <Directory "/var/www/">
>         Options -Indexes Includes FollowSymLinks
>         AllowOverride All
>         Allow from all
>     </Directory>
>     RedirectMatch permanent ^/$ http://wiki.yourdomain.com/xwiki/
>     ProxyPass /xwiki http://localhost:8080/xwiki
>     ProxyPassReverse /xwiki http://localhost:8080/xwiki
> </VirtualHost>
>
>         4. restart apache: sudo service apache2 restart
> _______________________________________________
> users mailing list
> [email protected]
> http://lists.xwiki.org/mailman/listinfo/users
>
_______________________________________________
users mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/users

Reply via email to