PHP 4.0 Bug #10272 Updated: Looks for php script in main folder, not virtual host folder
| From: | dantup at yahoo dot com | Date: | Wed, 11 Apr 2001 09:12:36 +0000 |
| Subject: | PHP 4.0 Bug #10272 Updated: Looks for php script in main folder, not virtual host folder | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-51428@lists.php.net to get a copy of this message | ||
ID: 10272
User Update by: dantup@yahoo.com
Old-Status: Open
Status: Closed
Bug Type: Apache related
Description: Looks for php script in main folder, not virtual host folder
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. :)
Previous Comments:
---------------------------------------------------------------------------
[2001-04-10 16:15:50] dantup@yahoo.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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=10272