8b5fefa91330973b1b3686d97817e5fec28ecaa0
[ikiwiki.git] / doc / bugs / Running_on_an_alternative_port_fails.mdwn
1 Can't appear to get 'wiki' functions (i.e. editing) running when ikiwiki is running on a port other than the default (port 80).  Somewhere in the processing it considers the base URL to exclude the port number and the websever throws back an error finding the page.
2
3 For example if you run on 'http://my.gear.xxx:8080/' then after clicking login (using default password auth) it will process and try to redirect you to 'http://my.gear.xxx/cgi-bin/ikiwiki.cgi'.  I'm assuming that somewhere we've used the 'path' and the 'host' and dropped the remainder.  I can figure out where this is yet but I'll post back if I get lucky.
4
5  -- fergus
6
7 NB: both the 'url' and the 'cgiurl' include the port and removing the port element provides the expected functionality.
8
9 > I tried to reproduce this by making my laptop's web server use port
10 > 8080. Set up ikiwiki to use that in cgiurl and url, and had
11 > no problem with either openid or password auth login.
12
13 > Ikiwiki has had some changes in this area in the past year; you don't say
14 > what version you were using. It could also be a problem with your web
15 > server, conceviably, if didn't correctly communicate the port to the cgi
16 > program. --[[Joey]]