"page not found" outside firewall
esharef
Joined: 2004-07-30
Posts: 7 |
Posted: Fri, 2004-07-30 19:15 |
Hi, When trying to access the gallery from outside my firewall, users get a "page not found" error, at http://esharef.serveftp.com/gallery Instead of loading esharef.serveftp.com/gallery, you can see that it tries to load esharefcube.local/gallery , which is the hostname within the firewall. Here's what I've done: Somehow, the gallery link is getting redirected to esharefcube.local, and I have no idea why. I think it must be gallery-related, because other services still seem to work from outside. ---- |
|
Posts: 2322
FAQ Gallery:c.22
Posts: 7
Yes, I checked the FAQ c.22 (see my post above), but still the gallery is being redirected to esharefcube.local even though the relative urls are set in config.php. What else could be causing this?
Posts: 2322
As long as Gallery is configured for relative URLs, there's nothing else that could be doing that, aside from your server.
The problem is that your server is redirecting traffic to that bad URL when someone tries to view a directory with trailing slash.
http://esharef.serveftp.com/gallery/index.php works perfectly.
http://esharef.serveftp.com/gallery/ works perfectly.
http://esharef.serveftp.com/gallery fails with redirect.
Posts: 7
You're right, I hadn't noticed that it worked with a trailing slash! Excellent, that nails it down, thank you!
In case anyone else reads this thread and has a trailing slash problem, here's what to do to fix it:
http://httpd.apache.org/docs/misc/FAQ.html#set-servername
Looks like it's all working for me now. Thanks for a great piece of software!