Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: [win32] Locations in Apache-Test framework: msg#00143

apache.mod-perl.devel

Subject: Re: [win32] Locations in Apache-Test framework

Randy Kobes wrote:
On Fri, 18 Apr 2003, Stas Bekman wrote:


Stas Bekman wrote:

Randy Kobes wrote:


On 14 Apr 2003, Joe Schaefer wrote:


I'd bet apache is just returning a 403 for security purposes,
since ':' is what separates the drive letter from the file path
on Windows. Superman^H^H^H^H^H^HWilliam Rowe probably knows the
full answer, so you might want to take this issue up on
dev@httpd.

That looks like it's probably it - there's some discussions in
the httpd-dev list that were along these lines. Further to this,
a location like
<Location /hello/hell::o>
....
</Location>
does work - what might be happening is Win32 Apache is rejecting,
via the 403, anything that looks like a leading drive designation, for security purposes.

Hmm, is this valid at all on winFU to supply a drive: entry in the URI path? I wonder why Apache can't reject paths with : in the first segment only if virtual mapping have failed.


So it's probably easier to just s!::!-! or s!::!/!, as
Stas proposed ...

I think that even though <Location Foo/Bar> is more intuitive,
<Location Foo-Bar> is less error-prone.

I think <Location Foo/Bar> is potentially error-prone, since if one of the test package is 'Foo' we will have a location <Location Foo> and then we will get merging with <Location Foo/Bar> something that could be undesired.

I think that at the end I'm simply going to install a default
TransHandler, semi-transparent to the developer (put it into
the autogenerated httpd.conf), rather than change the URLs.


That's certainly the most straightforward thing to do, and less
subject to introducing new bugs. One downside though is that if
people use the mod_perl tests as a basis for their own
installations (which, given the extensive nature, is a wonderful
source of examples), they might not realize that it's this
TransHandler that makes such locations with ':' in their names
work on Win32. And getting 403s isn't the most intuitive error to
track down ....

I'd be willing to go through the mod_perl 2 tests and track
the changes needed to s/::/-/, if that'd be useful ....

Thank you, Randy!

Doug suggests to rename as well, though to do it similar to XS naming convention so we would do s/::/__/.

I'll take care of the renaming.

I'll also remove the workaround afterwards.

Joe, that means that apreq tests need to be updated as well.

__________________________________________________________________
Stas Bekman JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/ mod_perl Guide ---> http://perl.apache.org
mailto:stas@xxxxxxxxxx http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org http://ticketmaster.com


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation