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

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



J. Bakshi wrote:
> Whenever I set any site to work with 5.2 cgi, the http:// protocol
> automatically changes to https:// and the link becomes as
> ...
> any clue is very much appreciated.

You have something installed that is configured to require https and
is generating an http redirect.  I will guess it is in
/etc/apache2/conf.d/ somewhere.  This is probably in conjunction with
SSLRequireSSL and probably uses RedirectMatch or similar from that
family of redirect commands.

  grep -r -i SSLRequireSSL /etc/apache2/
  grep -r -i redirect /etc/apache2/

You can verify this effect with wget (and other commands).  Use the -S
option to see the headers.

  wget -O/dev/null -S http://your.hostname.or.ip/path/path

The "Location:" header is the redirect.

You can read the documentation on Apache redirect here:

  http://httpd.apache.org/docs/2.0/mod/mod_alias.html#redirect

  http://httpd.apache.org/docs/2.0/misc/rewriteguide.html

Bob

Attachment: signature.asc
Description: Digital signature


Reply to: