storkmarg Posted August 23, 2007 Share Posted August 23, 2007 Hi, this should be a quick one. I'm not sure if the problem is with php or apache, but I have recently upgraded both. As the main file in every folder, I use index.php Now, when I go to http://www.mydomain.com/ it shows: Index of / index.php etc... The intended behavior is to show the index file, which works when I go to http://www.mydomain.com/index.php but it seems this the default file is not correctly set up. I hope you can help me by telling me where I need to change something. I use php 5.2.3 and apache 2.2.4 Many thanks. Quote Link to comment https://forums.phpfreaks.com/topic/66393-solved-indexphp-not-showing-by-default-at-root/ Share on other sites More sharing options...
Daleeburg Posted August 23, 2007 Share Posted August 23, 2007 its an apache thing. go into your httpd.conf file and make sure the DirectoryIndex line looks like this DirectoryIndex index.php index.php3 index.html index.htm index.html.var ~D Quote Link to comment https://forums.phpfreaks.com/topic/66393-solved-indexphp-not-showing-by-default-at-root/#findComment-332281 Share on other sites More sharing options...
storkmarg Posted August 23, 2007 Author Share Posted August 23, 2007 Many thanks! Quote Link to comment https://forums.phpfreaks.com/topic/66393-solved-indexphp-not-showing-by-default-at-root/#findComment-332300 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.