Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GoogleCodeExporter opened this issue Jul 12, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

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)))))



Original issue reported on code.google.com by [email protected] on 1 Oct 2008 at 7:24

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant