Click here to show or hide the menubar.

Redirect from server top level


If I go to the top level of one of my servers, I get It Worked! and nothing more.

The others do different things.

Memphis, for example, says: "Can't evaluate the expression because the name "feedurl" hasn't been defined."

Houston gives me a river with a broken menubar.

Shreveport says Sorry! There was an error: The attribute "allowDirectoryListings" must be true.

Same with Oldspice.

It's time to fix this loose-end.

It should redirect to the opmleditor website. Redirect is the best solution because we could change our mind later and put something even more central at that address, if anything should come up that is more central.

How to approach

I tried making a responder for this, but not only didn't it work, but it's too much work.

Let's create a hostNotFound callback for mainResponder.respond.

It worked on Pensacola.

On Memphis, the domain was pointing to the home page of beaut.root. After deleting the entry in config.mainresponder.domains, and adding the changes, the redirect worked.

On Houston, it was also pointing to beaut.root. Deleted it. Everyone else should be on the watch for this.

How to test

If you're running beaut.root, don't expect this to change anything.

If not, on the server, look in user.opmlEditor.prefs.server.externalDomainName. If that isn't correct, delete it and wait a minute. You should get a mediahackers.org domain assigned to your server. Feel free to use that, or create your own CNAME to point to the server, and place its name there.

Then in your browser, go to that domain. You should be redirected to the opmlEditor site.

Parts

opmlEditor.hostNotFoundCallback

opmlEditor.init


Posted on Monday, April 09, 2012 at 4:39 AM by Dave Winer.