$r->server->port() returns 0
$r->parsed_uri->port() and $r->parsed_uri->fragment() return nothing !!!
___cliff rayman___ a écrit :
> try these and see what they return:
>
> $r->server->port();
> $r->parsed_uri->port();
>
> --
> ___cliff [EMAIL PROTECTED]http://www.genwax.com/
> Jean-Denis Girard
try these and see what they return:
$r->server->port();
$r->parsed_uri->port();
--
___cliff [EMAIL PROTECTED]http://www.genwax.com/
Jean-Denis Girard wrote:
> For some reason (probably my error), $r->get_server_port() always returns 80
>
> although my mod_perl backend only listen to 8080 and 8
For some reason (probably my error), $r->get_server_port() always returns 80
although my mod_perl backend only listen to 8080 and 8443 (I use Listen
directives).
I'm using (sockaddr_in($r->connection->local_addr))[0] to get the port
instead.
Though it works, I must load one more module (Socket),
On Fri, 4 Aug 2000 [EMAIL PROTECTED] wrote:
> There is more then one section that needs to be secure and its not
> quite as blank and white as folder /secure needs to be secure.
> for example.
> folder /ecom/checkout needs to be secure.
> folder /ecom/showcart doesn't
it is really starting to s
There is more then one section that needs to be secure and its not
quite as blank and white as folder /secure needs to be secure.
for example.
folder /ecom/checkout needs to be secure.
folder /ecom/showcart doesn't
Scott
On 4 Aug 2000, at 10:16, David Mitchell wrote:
>
> .
> Redirect /sec
> I've got a section of our site where I want to force the user to
> connect via ssl.
> Inside of mod_perl, is there a parameter I can grab to see whether
> the connection is ssl or not? Or a way to get the port number?
If there isnt a special reason otherwise, why not just put a
redirect in h
$port=$r->get_server_port();
[EMAIL PROTECTED] wrote:
> Ok, so what is the PORT variable and how do i access it?
>
> Scott
> On 3 Aug 2000, at 22:08, Stas Bekman wrote:
> > Not really, you can spoof both:
> > http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_e
> > d_Connec.htm
Ok, so what is the PORT variable and how do i access it?
Scott
On 3 Aug 2000, at 22:08, Stas Bekman wrote:
> Not really, you can spoof both:
> http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_e
> d_Connec.html
>
On Thu, 3 Aug 2000, Stas Bekman wrote:
> On Thu, 3 Aug 2000, ___cliff rayman___ wrote:
>
> > use Apache::URI ();
> > $r->parsed_uri->scheme;
> >
> > returns http or https
>
> Not really, you can spoof both:
> http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_ed_Connec.html
On Thu, 3 Aug 2000, Philip Mak wrote:
> On Thu, 3 Aug 2000, Stas Bekman wrote:
>
> > > use Apache::URI ();
> > > $r->parsed_uri->scheme;
> > >
> > > returns http or https
> >
> > Not really, you can spoof both:
>
> Does the user have to spoof it deliberately in order for the wrong one to
> be
On Thu, 3 Aug 2000, Stas Bekman wrote:
> > use Apache::URI ();
> > $r->parsed_uri->scheme;
> >
> > returns http or https
>
> Not really, you can spoof both:
Does the user have to spoof it deliberately in order for the wrong one to
be detected?
If spoofing requires the user to do it on purpose
On Thu, 3 Aug 2000, ___cliff rayman___ wrote:
> use Apache::URI ();
> $r->parsed_uri->scheme;
>
> returns http or https
Not really, you can spoof both:
http://thingy.kcilink.com/modperlguide/config/Knowing_the_proxy_pass_ed_Connec.html
> [EMAIL PROTECTED] wrote:
>
> > I've got a section of
use Apache::URI ();
$r->parsed_uri->scheme;
returns http or https
[EMAIL PROTECTED] wrote:
> I've got a section of our site where I want to force the user to
> connect via ssl.
> Inside of mod_perl, is there a parameter I can grab to see whether
> the connection is ssl or not? Or a way to get
> "s" == scotta <[EMAIL PROTECTED]> writes:
s> I've got a section of our site where I want to force the user to
s> connect via ssl.
s> Inside of mod_perl, is there a parameter I can grab to see whether
s> the connection is ssl or not? Or a way to get the port number?
perldoc Apache
then
14 matches
Mail list logo