Jump to content

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!!!

 

 

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.