lflashl Posted May 20, 2007 Share Posted May 20, 2007 so i installed a web sever on debain... i have a page made up but where in the hell do tell apache to use index.html and not the apache test web page (hope you understand that one). Quote Link to comment https://forums.phpfreaks.com/topic/52174-hey-there-im-the-new-neeb/ Share on other sites More sharing options...
Trium918 Posted May 20, 2007 Share Posted May 20, 2007 In the conf httpd file. Quote Link to comment https://forums.phpfreaks.com/topic/52174-hey-there-im-the-new-neeb/#findComment-257330 Share on other sites More sharing options...
lflashl Posted May 20, 2007 Author Share Posted May 20, 2007 ok but where abouts and wht are im looking for conf httpd file? Quote Link to comment https://forums.phpfreaks.com/topic/52174-hey-there-im-the-new-neeb/#findComment-257369 Share on other sites More sharing options...
wildteen88 Posted May 20, 2007 Share Posted May 20, 2007 What you will want to do is remove the index.html file from the htdocs/ folder. However the httpd.conf file is is located in the conf/ folder where Apache is installed to. Quote Link to comment https://forums.phpfreaks.com/topic/52174-hey-there-im-the-new-neeb/#findComment-257439 Share on other sites More sharing options...
lflashl Posted May 20, 2007 Author Share Posted May 20, 2007 im using apache2... im been reading up on how to change this but still not sure on where in the httpd .conf file i need to change or add. Quote Link to comment https://forums.phpfreaks.com/topic/52174-hey-there-im-the-new-neeb/#findComment-257510 Share on other sites More sharing options...
wildteen88 Posted May 20, 2007 Share Posted May 20, 2007 Look for a setting called DirectoryIndex to set with files get treated as index files. The following is what it is set to by default: DirectoryIndex index.html If you want say, an index.php file to be treated as an index file. The change the line to this: DirectoryIndex index.html index.php Save the httpd.conf and restart Apache. Now if you place a index.php file in a directory Apache will show index.php automatically when you go the directory. Quote Link to comment https://forums.phpfreaks.com/topic/52174-hey-there-im-the-new-neeb/#findComment-257574 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.