zgkhoo Posted August 21, 2007 Share Posted August 21, 2007 how to make main.php as default apache web server home file? it always locate index.php as home , how can i configure as main.php as default home file which user key in domain ..it redirect user to main.php and not index.php ..thanks. Link to comment https://forums.phpfreaks.com/topic/65916-how-to-make-mainphp-as-default-apache-web-server-home-file/ Share on other sites More sharing options...
trq Posted August 21, 2007 Share Posted August 21, 2007 Find the DirectoryIndex directive in either your global httpd.conf file or your vhost and append it accordingly then restart apache. Link to comment https://forums.phpfreaks.com/topic/65916-how-to-make-mainphp-as-default-apache-web-server-home-file/#findComment-329500 Share on other sites More sharing options...
zgkhoo Posted August 21, 2007 Author Share Posted August 21, 2007 then how to config apache webserver httdoc directory? i wanna make it point to another directory such as c:\mydocument\httpdoc. thanks Link to comment https://forums.phpfreaks.com/topic/65916-how-to-make-mainphp-as-default-apache-web-server-home-file/#findComment-329570 Share on other sites More sharing options...
trq Posted August 21, 2007 Share Posted August 21, 2007 Have a look at your httpd.conf file. It is very well commented by default. Link to comment https://forums.phpfreaks.com/topic/65916-how-to-make-mainphp-as-default-apache-web-server-home-file/#findComment-329901 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.