Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 17th May 2006, 14:55
provell provell is offline
Member
 
Join Date: Apr 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Default Apache accepts only html not htm

Hy everyone,

My apache server is only accepting a index.html not index.htm files?

I did follow the "The perfect debian 3.1 setup" and changed the DirectoryIndex in the apache2.conf file as I schould.

The is the problem on 2 machines so it could not be a one time typo

Any help on the matter is verry much appreciated.

Rgds Edo
Reply With Quote
Sponsored Links
  #2  
Old 17th May 2006, 15:45
provell provell is offline
Member
 
Join Date: Apr 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Default Rtfm

Okee, sorry RTFM question.
Apache does not accept htm pages by default.

Still don't understand than why I have to edit the DirectoryIndex to:
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml ??

Will do some more reading on the matter.
thanks....
Reply With Quote
  #3  
Old 17th May 2006, 15:48
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

If your index page always is index.htm, then

Code:
DirectoryIndex index.htm
would be sufficient. But it's safer to have

Code:
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml
because sometimes your index page is named index.php, sometimes index.html, etc.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #4  
Old 17th May 2006, 16:57
provell provell is offline
Member
 
Join Date: Apr 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
Default more on the matter

Thanks for you're response and sorry to carry on the discussion but i'm realy trying to understand this stuf.

After doing some reading on apache freaks I found the folowing.

----------------------------------------------------------------
Example
DirectoryIndex index.html

then a request for http://myserver/docs/ would return http://myserver/docs/index.html if it exists, or would list the directory if it did not.

Note that the documents do not need to be relative to the directory;

DirectoryIndex index.html index.txt /cgi-bin/index.pl

would cause the CGI script /cgi-bin/index.pl to be executed if neither index.html or index.txt existed in a directory
----------------------------------------------------------------------

This would suggest that the line,
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml

should accept a file like index.htm!!

Why is my configuration than not accepting the index.htm?

Is there an other file to edit or a module not loaded correct.
Are there variables in memory that can be checked by some command.

Thanks in advance

Rgds Edo
Reply With Quote
  #5  
Old 17th May 2006, 17:07
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,751 Times in 2,581 Posts
Default

Quote:
Originally Posted by provell
This would suggest that the line,
DirectoryIndex index.html index.htm index.shtml index.cgi index.php index.php3 index.pl index.xhtml

should accept a file like index.htm!!
Apache reads the files in the order you put them in the configuration. Therefore, if you have a file index.html and a file index.htm in your directory, then Apache will deliver index.html because it comes first.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 18th May 2006, 17:43
provell provell is offline
Member
 
Join Date: Apr 2006
Posts: 97
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default got it

I know that there can only be one index.* file in that location.
Sorry for the misunderstanding.

At least I have fixed the problem.

While I was helping the site owner, he mentiond the problem of the htm and html file. He had 2 files and after renaming one of them to old_index.* the html file was not read du to an update he made in his file.
He had a <IFrame> tag wich is not accepted by apache.
I thought the files were identical and after all, on his windows desktop all worked fine in his local (windows)apache installation. I was getting some kind of acces denied message so I thougt apache could not read the file. But it could not read the <IFrame> part.

Well at least I learned a lot of apache and wish to thank you for all you're help.

Thanks!!!
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mod_mono apache 2.2 ColdDoT Server Operation 5 23rd May 2006 03:58
Problem with the installation of Dokeos (LMS) in ISPConfig jofranco General 4 28th April 2006 01:45
PHP/MySQL/Apache2/ISPConfig configuration issues? senzapaura General 21 25th December 2005 15:01
install apache 1.3 on FC 4 superg Server Operation 1 22nd December 2005 18:44
Apache 1.3 Support SleeperZ General 3 9th November 2005 12:10


All times are GMT +2. The time now is 00:27.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.