Re: //scriptname gets script source on https server on Win32

[prev] [thread] [next] [Date index for 2005/02/09]

From: Brian Reichert
Subject: Re: //scriptname gets script source on https server on Win32
Date: 14:53 on 09 Feb 2005
On Mon, Feb 07, 2005 at 05:12:18PM +0100, Josef Ender wrote:
> Hello
> 
> I accidentally entered a wrong URL in my browser and instead of the 
> script output I got the script SOURCE back!
> 
> The URL is https://my.servername.local//p_reh/myscriptname.pl
> 
> My mistake was the double / after the server name. Single / works as 
> expected. I can also enter three or more / after the server name and get 
> the script source back.
> 
> This happens on both my development server and the productive server.
> 
> May this be a configuration issue?
> 
> Many thanks for any hints.

I think the issue is your Location block:

> <Location /p_reh>

no longer matches your typo'ed URL:

> The URL is https://my.servername.local//p_reh/myscriptname.pl

Here, the location is '//p_reh'.  Your handler won't be called.

Consider LocationMatch, or using mod_rewrite to correct requested URLs.

> Josef
> -- 
> Josef Ender, Bitspot AG
> http://www.bitspot.com

        -- 
        Brian Reichert				<reichert@xxxxxxx.xxx>
37 Crystal Ave. #303			Daytime number: (603) 434-6842
Derry NH 03038-1713 USA			BSD admin/developer at large	

Re: //scriptname gets script source on https server on Win32
Brian Reichert 14:53 on 09 Feb 2005

Generated at 11:21 on 20 Feb 2005 by mariachi v0.52