Virtual Host Woes

"Conrad Winchester" <conrad-QAeHpZUe5xpohyhnyMQ0sVaTQe2KTcn/@public.gmane.org>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
Hi,

My first post here and I apologize if this has been asked before, but I really am stuck and can find no real 'HowTo' info on this.

I have Apache 2.0.55 with PHP 5.1RC3 that has fastcgi enabled.

At the top of my httpd.conf I have

LoadModule fastcgi_module     modules/mod_fastcgi.so
<IfModule mod_fastcgi.c>
        ScriptAlias /fcgi-bin/ /usr/local/apache2/fcgi-bin/
        <Location /fcgi-bin/>
           Options ExecCGI
           SetHandler fastcgi-script
        </Location>
        AddType application/x-httpd-fastphp .php
        Action application/x-httpd-fastphp /fcgi-bin/php.fcgi
</IfModule>

And later on I have several virtual host configurations.

<VirtualHost ...>
..
AddType application/x-httpd-fastphp .php
Action application/x-httpd-fastphp /fcgi-bin/php.fcgi
..
</VirtualHost>

It seems I need the type and handler specified in the virtual host - even though I would have expected the lines at the top of the config to set it globally.

The strange thing is that fastCGI works perfectly for my first listed virtual host - great - BUT none of my other virtual hosts with PHP work - they all redirect to the first virtual host.

How am I supposed to make this work????

Conrad Winchester





Anyone who surrenders an essential liberty for a little security deserves neither.


___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.