[xwiki-users] My Howto - Debian 4 (etch) - Tomcat - MySQL
Hi guys I wrote a little howto for my installation. Some things I was not able to cover (mod_proxy) or I just didn't do it so far (importing initial database). You can find the mini-howto http://88.198.238.101:8180/xwiki/bin/view/Main/ here . This site is not here to stay, so after cleanup the howto with your feedback (feel free to edit it directly) I would like to give this howto to the XWiki-guys and they can maybe find a place on their homepage were it fits...although I have to admit, that it's not much different from the already existing instructions, but in my opinion it could help total newbies like me ;-) Feedback is warmly welcome. Note: The howto was written by a non-tech-guy so there are may mistakes. If somebody from Europe could tell me whether the server is super-fast or super-lame that would be great. -- View this message in context: http://www.nabble.com/My-Howto---Debian-4-%28etch%29---Tomcat---MySQL-tp1512... Sent from the XWiki- Users mailing list archive at Nabble.com.
justanotheradress wrote:
Hi guys
I wrote a little howto for my installation. Some things I was not able to cover (mod_proxy) or I just didn't do it so far (importing initial database).
Guys, I have a little problem. I've got finally the whole "ProxyPass" running, well, almost. Here is my Apache part: *************************************** NameVirtualHost 88.198.238.101:80 <VirtualHost 88.198.238.101:80> ServerName wahlfreiheit.ch ProxyPass / http://wahlfreiheit.ch:8082/xwiki/ ProxyPassReverse / http://wahlfreiheit.ch:8082/xwiki/ </VirtualHost> *************************************** The thing is, if you go to http://wahlfreiheit.ch http://wahlfreiheit.ch you will see that something is wrong. It passes the thing to Tomcat but, well, you see the site is mixed up. If you go to http://wahlfreiheit.ch:8082/xwiki http://wahlfreiheit.ch:8082/xwiki you will get the content but again, just not the right way. Now the weirdest thing: If I enter http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome (note the port), it works just fine... Funny thing is, if I change my Apache settings and let the "/xwiki/" part from the ProxyPass away, it connects just smoothly to the welcome page of Tomcat. Any ideas what I'm doing wrong?? -- View this message in context: http://www.nabble.com/My-Howto---Debian-4-%28etch%29---Tomcat---MySQL-tp1512... Sent from the XWiki- Users mailing list archive at Nabble.com.
justanotheradress wrote:
justanotheradress wrote:
Hi guys
I wrote a little howto for my installation. Some things I was not able to cover (mod_proxy) or I just didn't do it so far (importing initial database).
Guys,
I have a little problem. I've got finally the whole "ProxyPass" running, well, almost.
Here is my Apache part:
*************************************** NameVirtualHost 88.198.238.101:80 <VirtualHost 88.198.238.101:80> ServerName wahlfreiheit.ch ProxyPass / http://wahlfreiheit.ch:8082/xwiki/ ProxyPassReverse / http://wahlfreiheit.ch:8082/xwiki/
Try: ProxyPass /xwiki http://wahlfreiheit.ch:8082/xwiki/ ProxyPassReverse /xwiki http://wahlfreiheit.ch:8082/xwiki/
</VirtualHost> ***************************************
The thing is, if you go to http://wahlfreiheit.ch http://wahlfreiheit.ch you will see that something is wrong. It passes the thing to Tomcat but, well, you see the site is mixed up.
If you go to http://wahlfreiheit.ch:8082/xwiki http://wahlfreiheit.ch:8082/xwiki you will get the content but again, just not the right way.
Now the weirdest thing: If I enter http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome (note the port), it works just fine...
Funny thing is, if I change my Apache settings and let the "/xwiki/" part from the ProxyPass away, it connects just smoothly to the welcome page of Tomcat.
Any ideas what I'm doing wrong??
-- Sergiu Dumitriu http://purl.org/net/sergiu/
<http://wahlfreiheit.ch:8082/xwiki/>
Try:
ProxyPass /xwiki http://wahlfreiheit.ch:8082/xwiki/ ProxyPassReverse /xwiki http://wahlfreiheit.ch:8082/xwiki/
-- Sergiu Dumitriu http://purl.org/net/sergiu/ _______________________________________________ users mailing list [email protected] http://lists.xwiki.org/mailman/listinfo/users
When I'm doing that, the page works fine with http://wahlfreiheit.ch/xwiki/but not with http://wahlfreiheit.ch/. I do want to show the xwiki on root ("/"). I don't understand that behavior...
[email protected] wrote:
<http://wahlfreiheit.ch:8082/xwiki/>
Try:
ProxyPass /xwiki http://wahlfreiheit.ch:8082/xwiki/ ProxyPassReverse /xwiki http://wahlfreiheit.ch:8082/xwiki/
When I'm doing that, the page works fine with http://wahlfreiheit.ch/xwiki/ but not with http://wahlfreiheit.ch/. I do want to show the xwiki on root ("/").
I don't understand that behavior...
To options: 1. Use: ProxyPass / http://wahlfreiheit.ch:8082/ ProxyPassReverse / http://wahlfreiheit.ch:8082/ and move XWiki from tomcat/webapps/xwiki to tomcat/webapps/ROOT This means that you won't have the Tomcat manager app, but you will also remove /xwiki/ from the path. 2. Add a redirect from http://wahlfreiheit.ch/ to http://wahlfreiheit.ch/xwiki/ -- Sergiu Dumitriu http://purl.org/net/sergiu/
To options:
1. Use:
ProxyPass / http://wahlfreiheit.ch:8082/ ProxyPassReverse / http://wahlfreiheit.ch:8082/
and move XWiki from tomcat/webapps/xwiki to tomcat/webapps/ROOT This means that you won't have the Tomcat manager app, but you will also remove /xwiki/ from the path.
2. Add a redirect from http://wahlfreiheit.ch/ to http://wahlfreiheit.ch/xwiki/
-- Sergiu Dumitriu <http://purl.org/net/sergiu/>
Thanks for trying to help me, but those to proposals are not solving the problem IMHO. 1. I don't want to move XWIKI from tomcat/webapps/xwiki to tomcat/ because then I couldn't use anything else with Tomcat 2. A redirect does somehow not work Even if I put the working link ( http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome/) into the "ProxyPass" argument it does not work. The ProxyPass is actually working but somehow not. Do I may have to configure something in Tomcat, too? But then again, why is http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome/working when addressed directly but not with ProxyPass...? All I want is if I enter http://wahlreiheit.ch in my browser it should go to http://wahlreiheit:8082/xwiki/ and show the xwiki installation...I don't get it.. :-(
[email protected] wrote:
To options:
1. Use:
ProxyPass / http://wahlfreiheit.ch:8082/ ProxyPassReverse / http://wahlfreiheit.ch:8082/
and move XWiki from tomcat/webapps/xwiki to tomcat/webapps/ROOT This means that you won't have the Tomcat manager app, but you will also remove /xwiki/ from the path.
2. Add a redirect from http://wahlfreiheit.ch/ to http://wahlfreiheit.ch/xwiki/
-- Sergiu Dumitriu <http://purl.org/net/sergiu/>
Thanks for trying to help me, but those to proposals are not solving the problem IMHO.
1. I don't want to move XWIKI from tomcat/webapps/xwiki to tomcat/ because then I couldn't use anything else with Tomcat
It does not mean that you will not be able to put anything else. You can have: tomcat/webapps/ROOT/ -> XWiki tomcat/webapps/myapp/ -> another application tomcat/webapps/intra/ -> another XWiki instance used internally tomcat/webapps/manager/ -> Tomcat manager application What you lose is the Tomcat Welcome page, which I never found useful. You will be able to use the manager app, since it is in another directory.
2. A redirect does somehow not work
What did you try? There is a mod_redirect component, AFAIK.
Even if I put the working link (http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome/) into the "ProxyPass" argument it does not work. The ProxyPass is actually working but somehow not. Do I may have to configure something in Tomcat, too? But then again, why is http://wahlfreiheit.ch:8082/xwiki/bin/view/Main/WebHome/ working when addressed directly but not with ProxyPass...?
Because the way it works is like this: - A = the url pattern on the left, like http://wahlfreiheit.ch - B = the url pattern on the right, like http://wahlfreiheit.ch:8082/xwiki - see some URL, U - if U starts with A, then compose U' as B + (U - A), so for http://wahlfreiheit.ch/xwiki/bin/view/Main/WebHome/ this becomes http://wahlfreiheit.ch:8082/xwiki/xwiki/bin/view/Main/WebHome/ If you map /xwiki to http://wahlfreiheit.ch:8082/xwiki/ then it works fine once the URL path starts with /xwiki/, but then http://wahlfreiheit.ch is not passed to tomcat. This is why I said that you must put a redirect in there.
All I want is if I enter http://wahlreiheit.ch in my browser it should go to http://wahlreiheit:8082/xwiki/ and show the xwiki installation...I don't get it.. :-(
-- Sergiu Dumitriu http://purl.org/net/sergiu/
Sergiu Dumitriu wrote:
[email protected] wrote:
2. A redirect does somehow not work
What did you try? There is a mod_redirect component, AFAIK.
Put this inside the VirtualHost definitions: RedirectMatch permanent ^/$ http://wahlfreiheit.ch/xwiki/ -- Sergiu Dumitriu http://purl.org/net/sergiu/
On Thu, Mar 13, 2008 at 4:35 PM, Sergiu Dumitriu <[email protected]> wrote:
Sergiu Dumitriu wrote:
[email protected] wrote:
2. A redirect does somehow not work
What did you try? There is a mod_redirect component, AFAIK.
Put this inside the VirtualHost definitions:
RedirectMatch permanent ^/$ http://wahlfreiheit.ch/xwiki/
-- Sergiu Dumitriu
Ok, I was veeeery close to run amok. I don't know how resp. why it works now (with your suggestions) but it does. I will spend later some to figure out why...right now I'm done with my server (spent the whole day on this). THANK YOU VERY MUCH SERGIU!!!!
participants (3)
-
justanotheradress -
justanotheradress@gmail.com -
Sergiu Dumitriu