Export to GitHub

nurpawiki - issue #61

Browsing to http://192.168.67.128 (i.e., root of ocsigen server) redirects me to http://localhost


Posted on Oct 1, 2008 by Happy Lion

What steps will reproduce the problem? 1. Browse to http://192.168.67.128:8080 (where my Ocsigen lives) 2. Observe how I'm taken to http://localhost:8080 (wrong!)

What is the expected output? What do you see instead?

Expected output is to be taken to http://192.168.67.128:8080/view? p=WikiStart.

Instead, I'm redirected to http://localhost:8080/view?p=WikiStart. I think the localhost comes in from <host defaulthostname>. Specifying 192.168.67.128 to defaulthostname is NOT the right solution as this should work the right way by default.

I imagine the cause is this:

8< services.ml:

let wiki_start = Eliom_predefmod.String_redirection.register_new_service [] unit (fun sp _ _ -> return (make_full_uri wiki_view_page sp (Config.site.cfg_homepage, (None, (None, None)))))

Status: Accepted

Labels:
Type-Defect Priority-Medium Usability