[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [K12OSN] Apache2 and index.php or index.html



you need a directive
DirectoryIndex index.html index.php

in the main server config _OUTSIDE_ of the directory sections. This will
set it as the defaults to use. It is order specific so if you want php
first, list it first. If you want it different inside a specifi
directory, you can change with a 
<Directory /path/to/foo>
DirectoryIndex index.htm index.php index.html
</Directory>

On Fri, 2008-02-15 at 08:23 -0600, Doug Simpson wrote:
> Hi gang!
> 
> On a debian install, apache2, I cannot get it to display index.html or index.php when they are in documentroot. Only when they are in a directory called /var/www/apache2-default.
> 
> If I have them in /var/www which is the document root, they will not display using http://sitename/ but they will display if you enter http://sitename/index.html or index.php.
> 
> Where can I go look  for the setting to fix this?
> 
> Apache2 is far different from 1 as far as configuration!
> 
> Thanks for any assistance!
> 
> Doug
> 
> Doug Simpson
> Technology Specialist
> De Queen Public Schools
> De Queen, AR
> simpsond leopards k12 ar us
> 
> 
> _______________________________________________
> K12OSN mailing list
> K12OSN redhat com
> https://www.redhat.com/mailman/listinfo/k12osn
> For more info see <http://www.k12os.org>
> 
-- 
James P. Kinney III          
CEO & Director of Engineering 
Local Net Solutions,LLC        
770-493-8244                    
http://www.localnetsolutions.com

GPG ID: 829C6CA7 James P. Kinney III (M.S. Physics)
<jkinney localnetsolutions com>
Fingerprint = 3C9E 6366 54FC A3FE BA4D 0659 6190 ADC3 829C 6CA7


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]