Add new attachment

Only authorized users are allowed to upload new attachments.

This page (revision-15) was last changed on 19-Nov-2008 20:33 by  

This page was created on 25-Oct-2003 00:29 by

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Difference between version and

At line 5 changed 2 lines
{{{ProxyPass /wiki/ http://localhost:8080/JSPWiki/
ProxyPassReverse /wiki/ http://localhost:8080/JSPWiki/}}}
ProxyPass /wiki/ http://localhost:8080/JSPWiki/
ProxyPassReverse /wiki/ http://localhost:8080/JSPWiki/
At line 15 added 2 lines
!See also [ApacheTomcatConnection]
At line 18 changed one line
This is a more efficient way of achieving the same effect as a reverse proxy2.
This is a more efficient way of achieving the same effect as a reverse proxy.
If you require editors to set a cookie in order to edit a page, ProxyPassReverse won't work.
Then you need to configure Tomcat with proxy support too. Like this:
* Edit server.xml
* Identify the connector which listens to port 8080 (search for port="8080")
* Add __proxyPort="80"__
* Add __proxyName="virtualhost"__ where virtualhost is the name of your host
* Restart Tomcat
[Tomcat 4.1 Proxy Howto |]
If you have virtual host and use ProxyPass to forward to tomcat, you should use hostnames in the proxy. So instead of
ProxyPass /wiki/ http://localhost:8080/JSPWiki/
ProxyPassReverse /wiki/ http://localhost:8080/JSPWiki/
ProxyPass /wiki/
ProxyPassReverse /wiki/
The wiki:baseUrl tag gets ServerName from the host Header, an in my case, the redirect pointing to an internal address, so the URL for stylesheets etc were not accessible externally. You can use the following jsp to test the headers.
<head><title>Header test</title></head>
<% java.util.Enumeration names = request.getHeaderNames();
while (names.hasMoreElements()) {
String name = (String)names.nextElement();
out.println(name+": "+request.getHeader(name)+"<br>");
-- Tested with Tomcat 5.0.28. Apache 2.0.52 and JSPWiki 2.3.55
How to minimize the Session?
Every request gets a new Session for the Proxy IP-Adress!
How to determine the real IP-Adress for the ServletContainer?
JSPWiki see the Proxy IP-Adress only!
--AnonymousCoward, 16-Nov-2006
I am having a similar problem. I have configured Apache to act as a proxy. All requests get redirected to tomcat. However it is now impossible to log in to the wiki. The login seems to work and the logs confirm that the login was successfull. Unfortunately the user is then redirected to the Main page were the login information is lost.
Only anonymous access is possible at the moment. This is a big problem for me as I need to disable Edit capabilities or anonymous users. Is there a way to set this up so that users are able to log in?
--[DanielRobinson|], 19-Jan-2007
I have a similar situation with a JSPWiki site that works perfectly on its internal host, and works ''almost'' perfectly on our proxied external Apache host. Users can login, get their identity asserted, and so on, but the following pages see their asserted identity but not their login status. My temporary workaround is to allow editing by asserted users in addition to authenticated ones. Sure a hacker could forge a cookie, but I'm not running something where that is a concern. I just want to give credit where due. Don't know if that will help in your case. If so, it is in jspwiki.policy of course.
-- Mike Martin
I am having a similar problem. JSPWiki 2.5 beta with Tomcat 6.0. Setup ContainerAuth and virtual host on Tomcat. Everything works great except for preview. It appears that the session is lost between the Edit page and the Preview Page. [Bug Report Here |] for more info.
Version Date Modified Size Author Changes ... Change note
15 19-Nov-2008 20:33 4.518 kB to previous
14 19-Nov-2008 15:08 4.506 kB to previous | to last
13 24-Mar-2008 11:51 3.839 kB ChristopheDupriez to previous | to last
12 24-Aug-2007 01:59 3.797 kB to previous | to last
11 19-Jan-2007 12:02 3.474 kB DanielRobinson to previous | to last Comment by DanielRobinson
10 16-Nov-2006 10:33 2.861 kB AnonymousCoward to previous | to last Comment by AnonymousCoward
9 15-Dec-2005 23:26 2.622 kB MikeWall to previous | to last
8 20-Jan-2005 15:38 1.584 kB Peterbrandstrom to previous | to last
7 20-Jan-2005 15:15 1.559 kB Peterbrandstrom to previous | to last
6 09-Jan-2005 00:12 1.094 kB to previous | to last
5 09-Jan-2005 00:11 1.095 kB to previous | to last
4 16-Dec-2004 11:57 1.094 kB GarethWestern to previous | to last
3 25-Oct-2003 01:20 0.55 kB to previous | to last
2 25-Oct-2003 00:30 0.501 kB to previous | to last
1 25-Oct-2003 00:29 0.446 kB to last
« This page (revision-15) was last changed on 19-Nov-2008 20:33 by