Forum OpenACS Q&A: ForceHostP

Collapse
Posted by Lars Pind on
In ACS 3.x there was a request-processor feature, ForceHostP, that
would make the request-processor always redirect folks to some URL
that you wanted, say, www.foobar.com, if they came requesting some
other URL, such as foobar.com without the www., or
www.someotherurl.org, for example.

I kind of liked that, being able to access your site using whatever
URL they want, but always redirecting them to the canonical URL.

So I implemented this, and uploaded a patch to the SDM.

If there's enough interest, I can perhaps clean it up a bit,
parameterize it, test to see that it works with hostmap, which I'm
not sure it does at the moment.

The patch is here:

https://openacs.org/sdm/one-patch.tcl?patch_id=356

/Lars

Collapse
2: Response to ForceHostP (response to 1)
Posted by Neophytos Demetriou on
Lars, IIRC, someone posted a patch about this already (or was it a bboard post -- I'm not sure but I think it was Jeff Davis).I know because I'm running it on my experiments OpenACS installation. Just a heads up in case you want to check that out as well.
Collapse
3: Response to ForceHostP (response to 1)
Posted by Dave Bauer on
Lars,

This is already a parameter. There was a patch to make it actually work a while back.

https://openacs.org/sdm/one-patch.tcl?patch_id=284

I wonder if this every made it in.

Collapse
4: Response to ForceHostP (response to 1)
Posted by Lars Pind on
Didn't know about this patch. It didn't make it in yet.