homepage Welcome to WebmasterWorld Guest from 54.226.21.57
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Platinum Sponsor 2014
Home / Forums Index / Code, Content, and Presentation / Apache Web Server
Forum Library, Charter, Moderators: Ocean10000 & incrediBILL & phranque

Apache Web Server Forum

    
yet another 404 problem
only absolute URLs work on some virtual hosts
jamie

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 498 posted 8:02 pm on Oct 26, 2003 (gmt 0)

i have been using the following line successfully on one of our virtual hosts.

ErrorDocument 404 /404.html

the httpd.conf looks like this:

<Directory />
AllowOverride AuthConfig FileInfo
Options FollowSymlinks Multiviews
</Directory>

<Directory /usr/local/apache/sites/virtualhost.com>
AllowOverride All
Options FollowSymlinks IncludesNoExec Multiviews
</Directory>

but in another virtual host which i have set up identically, only an absolute URL works:

ErrorDocument 404 [virtualhost2.com...]

this is not optimal, because the old URL is not left in the browserbar, and i think the actual header sent is a 302.

i have double and triple checked all my syntax, and can't find any errors, but i think it must be something silly which i've missed? it's so odd that it works in one site and not in the other!

many thanks

 

jdMorgan

WebmasterWorld Senior Member jdmorgan us a WebmasterWorld Top Contributor of All Time 10+ Year Member



 
Msg#: 498 posted 9:27 pm on Oct 26, 2003 (gmt 0)

Jamie,

Interesting...

PatrickDeese is struggling with the exact same problem over here [webmasterworld.com]. You two may want to compare notes.

Jim

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Apache Web Server
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved