perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul G. Weiss" <PGWe...@arity.com>
Subject RE: http or https in URL?
Date Tue, 06 Nov 2001 16:31:22 GMT
Not the best way.  There is nothing to stop me from running
straight http on port 443:

	http://yoursite.com:443

or https on port 80:

	https://yoursite.com:80

If you're using mod_ssl to do the https stuff, it will set
the HTTPS environment variable to 'on' when using https.



-----Original Message-----
From: Rob Nagler [mailto:nagler@bivio.net]
Sent: Tuesday, November 06, 2001 10:46 AM
To: modperl@apache.org
Subject: Re: http or https in URL?


> But how do I get the protocol, http or https.

You can check the port on $c->local_addr.  443 is https.

Rob




Mime
View raw message