Jump to content

Index.php not working under virtual host but index.html is working


Recommended Posts

Index.php works under localhost virtual host but not under another virtual host

I have two virtual hosts set up: http://localhost and http://edgeridge. the document root of my wamp server is c:/webs and the application I am running resides in c:/webs/myapp/public/. in myapp folder i have two files (index.php; which just runs the phpinfo() command, and the second is index.html which just has the text "Hello World")

 

The following works under the localhost virtual directory:

http://localhost/myapp/public/index.php

http://localhost/myapp/public/index.html

 

I have set up the document root of the virtual host for http://edgeridge to

c:/webs/myapp/public/

 

However, when i browse to http://edgeridge, http://edgeridge/index.html works but http://edgeridge/index.php does not work; i get the error 404 page not found code.

 

I have check the DirectoryIndex to make sure it includes .php for which it does. All settings seem to be set up correctly since it works under http://localhost/myapp/public/index.php.

 

Any help please, this has been bugging me for the past 3 days... help!!!

 

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.