"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:
- Port 80 is definitely mapped through the firewall, you can see the default apache page at http://esharef.serveftp.com .
- I've changed config.php as suggested in the FAQ c.22 to use relative urls, and restarted apache.
- I've made sure that config.php, .htaccess, httpd.conf contain no references to esharefcube.local

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.
Any ideas?

----
Give us your Gallery/webserver information to get a faster answer.
Get this information from the PHP diagnostic (in the configuration wizard).
Gallery URL (optional but very useful): http://esharef.serveftp.com/gallery
Gallery version: 1.4.4-RC3
Apache version: 1.3.29
PHP version (don't just say PHP 4, please): PHP v4.3.6
Graphics Toolkit: NetPBM
Operating system: Mac OSX Client
Web browser/version (if applicable): Firefox 0.9

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-30 19:31
 
esharef

Joined: 2004-07-30
Posts: 7
Posted: Fri, 2004-07-30 21:11

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?

 
signe
signe's picture

Joined: 2003-07-27
Posts: 2322
Posted: Fri, 2004-07-30 21:25

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.

 
esharef

Joined: 2004-07-30
Posts: 7
Posted: Fri, 2004-07-30 22:14

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!