Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

404 error for extension

Status
Not open for further replies.

ThinkGeekness

Technical User
Jan 20, 2003
55
US
I have Apache 1.3.26, and this question is hard to word, but I will try...

I can get to the main page fine, its just that pages like name.com/othername doesnt work, I get a 404 error. The way that I have it layed out is for name.com i have index.html in /name. I also have /name/othername with the index.html file in it, but it doesnt seem to work. Is there some setting in httpd.conf that I am missing?

Thanks
 
I suspect your apache does not recognize index.html is the one to look up when request receive to access name/ directory.

check to see if your httpd.conf having below statement for your name/ directory ..

<Directory /home/httpd/html/name>
DirectoryIndex index.html index.htm
...

good luck!

Gary
 
Thanks for your reply, I added

<Directory /home/httpd/html/name>
DirectoryIndex index.html index.htm
</Directory>

but I got the following error message when I restarted Apache:

Syntax error on line 1051 of /usr/local/apache/conf/httpd.conf:
Multiple <Directory> arguments not (yet) supported.

I search through httpd.conf and I found:

<IfModule mod_dir.c>
DirectoryIndex index.html
DirectoryIndex index.html index.htm
</IfModule>

Thanks
 
I just figured out what it was, I needed to add a &quot;/&quot; at the end, so I would have to do Is there anyway so that I dont have to add the extra &quot;/&quot; at the end?

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top