Perrin Harkins wrote:
I just thought respond to this and say that it worked fine with a Perl CGI script. I did manage to get things working for PHP in the end. I was using <VirtualHost *:80> in the VirtualHost section (along with NameVirtualHost *:80), as soon as I changed this and defined an IP address instead of * (effectively making it not use NameVirtualHost) it worked!!On Mon, May 25, 2009 at 2:30 AM, Geoff Toogood <ge...@allotz.com> wrote:I have a <VirtualHost> directive which incorporates a mod_perl PerlTransHandler. This VirtualHost block of the config also has some Alias and SetEnv directives defined.The PerlTransHandler module behaves correctly and works well but it seems that when I execute a PHP document under this VirtualHost I lose the $_SERVER (%ENV in perl) variables and Alias settings I have set in the Apache VirtualHost block of my config.That should work. Can you try it with a simple CGI script, to see if the PHP config is the problem? - Perrin That was not really a solution for me because it means I need to have a separate IP address for each of these VirtualHost sections I may want to add Alias' or set ENV variables in the config :oS Anyone know why that might be? (I know it is not really a modperl related question, more of an apache question so feel free to ignore it :o) FYI I have a standard debian linux setup running apache2 and modperl. Thanks for all your help guys. Geoff T --
Kind regards, Geoff T
|
- Problems with SetEnv and Alias Geoff Toogood
- Re: Problems with SetEnv and Alias Fred Moyer
- Re: Problems with SetEnv and Alias Perrin Harkins
- Re: Problems with SetEnv and Alias Geoff Toogood