[xwiki-users] configuring url
Now that I've got XWiki up and running, how can I configure Tomcat or whatever so that it's available at the root on port 80 instead of wiki.example.com:8080/xwiki? Thanks, Andrew
Hi, Andrew! You can use Tomcat + Apache/Nginx for this purpose. In order to make it root application in Tomcat, install XWiki as ROOT application. Also, refer Short URL manual at http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs Don't do "binless" path, because WYSIWYG editor won't work correctly due to https://jira.xwiki.org/browse/XWIKI-8737 Hope it is worth to be fixed in 5.x cycle :-) Вторник, 19 февраля 2013, 16:30 -08:00 от Andrew Havens <andrewh@copiousinc.com>:
Now that I've got XWiki up and running, how can I configure Tomcat or whatever so that it's available at the root on port 80 instead of wiki.example.com:8080/xwiki?
Thanks, Andrew _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
Kind regards, Dmitry
On Wed, Feb 20, 2013 at 2:26 AM, Haru <haru_mamburu@mail.ru> wrote:
Hi, Andrew!
You can use Tomcat + Apache/Nginx for this purpose. In order to make it root application in Tomcat, install XWiki as ROOT application.
Also, refer Short URL manual at http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs
Don't do "binless" path, because WYSIWYG editor won't work correctly due to https://jira.xwiki.org/browse/XWIKI-8737
Hope it is worth to be fixed in 5.x cycle :-)
Вторник, 19 февраля 2013, 16:30 -08:00 от Andrew Havens <andrewh@copiousinc.com>:
Now that I've got XWiki up and running, how can I configure Tomcat or whatever so that it's available at the root on port 80 instead of wiki.example.com:8080/xwiki?
Thanks, Andrew _______________________________________________
depending on your operating system, you can use authbind to run on port 80 without requiring apache/nginx/why as a proxy you could also use haproxy as a proxy http://blogs.mulesoft.org/a-better-tomcat-for-ubuntu-and-debian/ Cheers Arne
Hello, For Tomcat running on port 80, take a look at tomcat/conf/server.xml, and replace 8080 connector by 80. But of course, it's advisable to not run Tomcat in front-end (ie port 80), Apache or nginx are much better for that role :-) And about dropping 'xwiki' application name, just install xwiki webapp in tomcat/webapps/ROOT (you may need to make a backup of the old ROOT directory). Regards, Guillaume Fenollar 2013/2/20 shouldbe q931 <shouldbeq931@gmail.com>
On Wed, Feb 20, 2013 at 2:26 AM, Haru <haru_mamburu@mail.ru> wrote:
Hi, Andrew!
You can use Tomcat + Apache/Nginx for this purpose. In order to make it root application in Tomcat, install XWiki as ROOT application.
Also, refer Short URL manual at http://platform.xwiki.org/xwiki/bin/view/Main/ShortURLs
Don't do "binless" path, because WYSIWYG editor won't work correctly due to https://jira.xwiki.org/browse/XWIKI-8737
Hope it is worth to be fixed in 5.x cycle :-)
Вторник, 19 февраля 2013, 16:30 -08:00 от Andrew Havens < andrewh@copiousinc.com>:
Now that I've got XWiki up and running, how can I configure Tomcat or whatever so that it's available at the root on port 80 instead of wiki.example.com:8080/xwiki?
Thanks, Andrew _______________________________________________
depending on your operating system, you can use authbind to run on port 80 without requiring apache/nginx/why as a proxy
you could also use haproxy as a proxy
http://blogs.mulesoft.org/a-better-tomcat-for-ubuntu-and-debian/
Cheers
Arne _______________________________________________ users mailing list users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
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
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:
instead of
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 <andrewh@copiousinc.com>
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 users@xwiki.org http://lists.xwiki.org/mailman/listinfo/users
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:
Yes, that was my original request, but I didn't realize I would have to reinstall it (and I'm assuming a custom install, since I used the APT package to originally install). It's not worth the effort since it's more of a cosmetic thing. The redirect solves the issue from the user's perspective of making it so you can simply go to the domain to access the wiki. --Andrew
participants (4)
-
Andrew Havens -
Guillaume Fenollar -
Haru -
shouldbe q931