php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10272 Looks for php script in main folder, not virtual host folder
Submitted: 2001-04-10 16:15 UTC Modified: 2001-04-11 05:12 UTC
From: dantup at yahoo dot com Assigned:
Status: Closed Package: Apache related
PHP Version: 4.0.0 OS: Windoze Me
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: dantup at yahoo dot com
New email:
PHP Version: OS:

 

 [2001-04-10 16:15 UTC] dantup at yahoo dot com
When I call http://www.myvirtualhost1.com/script.php

rather than running /home/vh1/script.php, it tries /home/script.php (/home is where http://localhost/ goes).

I've seen a few posts about this in the phpbuilder archives, but no solution, and I can't find anything in these bug reports. I'm not sure if it's Apache not passing on the right filename, of a problem with php.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-04-11 05:12 UTC] dantup at yahoo dot com
I figured this out. It's not really a bug, just something strange. When you set the documentroot in php.ini, all pages are read from there, ignoring any virtualhosts, I don't know why, it seems stupid. So, as soon as I removed the value from there (leaving it blank), it worked fine. :)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun Dec 22 05:01:30 2024 UTC