Forum Moderators: phranque

Message Too Old, No Replies

Adding -pass-header HTTP AUTHORIZATION to vhost.conf

         

formasfunction

6:39 pm on Dec 19, 2007 (gmt 0)

10+ Year Member



I'm running PHP5 on my Linux Plesk 8.0 install (it's a MediaTemple DV if that helps) as a fastcgi module and I wanted to know how to add -pass-header HTTP_AUTHORIZATION to my vhost.conf file in order to allow my PHP scripts access to HTTP authentication. Here's what my vhost.conf file looks like right now


AddHandler fcgid-script .php .php5 .xml
<Directory /var/www/vhosts/example.com/subdomains/dev/httpdocs>
FCGIWrapper /opt/php51/cgi-bin/php5 .php
FCGIWrapper /opt/php51/cgi-bin/php5 .php5
FCGIWrapper /opt/php51/cgi-bin/php5 .xml
Options ExecCGI
allow from all
</Directory>

I tried following the directions on fastcgi.com but the syntax is slightly different (for instance FastCgiWrapper is FCGIWrapper on my server) and when I try variations of the command I get a load module error.

I've tried both MediaTemple support and the Plesk forums but on one's talking. Any ideas?