On Fri, 16 Dec 2011 13:03:01 -0700
Bob Proulx <b...@proulx.com> wrote:

> 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

Hello Bob,

Thanks for your response and clarification. 
Indeed with the "grep -r -i SSLRequireSSL /etc/apache2/" I have found

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

at /etc/apache2/sites-available/default-ssl file

and my wrapper script is

``````````````
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
````````````

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

Thanks


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20111219101654.6b771...@shiva.selfip.org

Reply via email to