Item13329: First login in the session leads to Not Found page
Priority: Normal
Current State: Confirmed
Released In: n/a
Target Release: n/a
First login in the session leads to Not Found page
How to reproduce:
--
JozefMojzis - 26 Mar 2015
This seems to be an issue in the Lighttpd configuration, or maybe in Lighttpd. It's not possible to pass any query parameters on the default url. eg.
http://localhost:8080/?raw=on I've played around with the lighttpd config, but can't seem to come up with a rule that matches the empty path.
--
GeorgeClark - 11 May 2015
In the utf8 branch the web name could start with utf8 char, so the generalisation
(Anything what starts with uppercase [A-Z]
should be handled with /bin/view
) script isn't enough. Therefore I'm now using the following:
Anything what isn't start with /bin
or /pub
should be handled by /bin/view
script. E.g.: this:
--- refmast/foswiki/core/tools/lighttpd.pl 2015-05-10 23:14:06.000000000 +0200
+++ devcdot/foswiki/core/tools/lighttpd.pl 2015-05-17 09:41:01.000000000 +0200
@@ -124,10 +124,11 @@
#debug.log-request-handling = "enable"
# default landing page
- url.rewrite-once = ( "^/?(index.*)?\$" => "/bin/view/Main/WebHome" )
+# url.rewrite-once = ( "^/?(index.*)?\$" => "/bin/view/Main/WebHome" )
# short urls
- url.rewrite-once += ( "^/([A-Z_].*)" => "/bin/view/\$1" )
+# url.rewrite-once += ( "^/([A-Z_].*)" => "/bin/view/\$1" )
+ url.rewrite-once += ( "^/((?!bin/|pub/).*)" => "/bin/view/\$1" )
EOC
;
The above rewrites the "default landing page" too.
--
JozefMojzis - 17 May 2015