Guest Posted March 10, 2003 Share Posted March 10, 2003 Running Apache 2 I have configured the httpd.conf and added default.php and index.php to the DirectoryIndex field. However when I type in the web address it keeps insisting on sending me to the apache test page. Everything I have read says that it should work... Any ideas.. ?? TIA Link to comment Share on other sites More sharing options...
greree Posted March 10, 2003 Share Posted March 10, 2003 Put default.php and index.php first, like DirectoryIndex default.php index.php index.html etc. If that doesn't work remove or rename the Apache test page. Link to comment Share on other sites More sharing options...
toolcrazy Posted March 10, 2003 Share Posted March 10, 2003 Did you re-start your server to make the changes go into effect? It won't work until you restart your server. I always put defualt.php first in the index. Steve ------------------------- Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2003 Share Posted March 10, 2003 httpd.conf looks like this; DirectoryIndex default.php index.php It was been restarted... like 30 times now... I have not renamed the test page. I put my osc files in a different folder like this /var/www/foldername/ and changed the httpd.conf DocumentRoot to reflect. I can pullup the page when I specify the default.php like this http://mydomain.com/default.php but with this http://mydomain.com/ I get the apache test page. Link to comment Share on other sites More sharing options...
toolcrazy Posted March 10, 2003 Share Posted March 10, 2003 Do you have an commonhttpd.conf file? I know the Apache I use stores it there. Steve ------------------------- Link to comment Share on other sites More sharing options...
Guest Posted March 10, 2003 Share Posted March 10, 2003 I found the problem; I needed to change to the virtual directory info as well; # Virtual host Default Virtual Host <VirtualHost *> ServerName _default_ ServerSignature email DirectoryIndex default.php index.php ServerSignature email LogLevel warn HostNameLookups off </VirtualHost> Now it works Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.