*weird* virtual server/PHP_SELF problem
| From: | niallm-web at enigma dot ie | Date: | Wed, 06 Dec 2000 02:31:38 +0000 |
| Subject: | *weird* virtual server/PHP_SELF problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-28814@lists.php.net to get a copy of this message | ||
Hi Folks,
I'm encountering a weird problem with my virtual server setup (implemented with
Apache/1.3.14 (Unix) DAV/1.0.1 PHP/4.0.3pl1 mod_ssl/2.7.1 OpenSSL/0.9.6)
and I'm wondering if anyone can help me.
Basically PHP_SELF which gets used to build FORM ACTION boxes and so
on only returns the right hand component of what I thought was the URL requested.
It does not return the hostname. Example: I request http://www.americanq.com/blah.php
from my browser, PHP_SELF says (and phpinfo() confirms) that it's blah.php.
The FORM ACTION building mechanism more or less requires the http://hostname
bit as well.
Could it have something to do with my Apache virtual server setup? It's something
like:
NameVirtualHost *
<VirtualHost *>
ServerName www.americanq.com
DocumentRoot blah/americanq
ServerAdmin ops@blah.com
</VirtualHost>
.... and so on.
Any ideas?
Niall
--
Enigma Consulting Ltd