[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: php 5.2 as cgi automatically changes protocol !!!



J. Bakshi wrote:
> <FilesMatch "\.(cgi|shtml|phtml|php)$">
>       SSLOptions +StdEnvVars
>    </FilesMatch>
>    <Directory /usr/lib/cgi-bin>
>       SSLOptions +StdEnvVars
>    </Directory>

Pretty normal there.  That is just telling apache to pass information
through as environment variables.  That isn't doing any redirects.

> ScriptAlias /php5-cgi  /usr/lib/cgi-bin/php52/php52.fcgi
> Action application/x-httpd-php5  /php5-cgi
> AddHandler application/x-httpd-php5 .php .php5 .php4 .php3 .phtml
> AddHandler fastcgi-script .fcgi

No redirects there.

> Does the above section of /etc/apache2/sites-available/default-ssl
> make the redirect ?

No.  There must be something else somewhere.  It doesn't look like any
of those things.  But good on where you are looking.  I would expect
it to be there somewhere.

It could be in your php code directly.  Do you see any Location:
statements in the PHP that would be generating a redirect?

Good luck!

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: