Strange URL separation

This is a discussion on Strange URL separation within the Apache Web Server forums, part of the Web Server and Related Forums category; Hi, a friend of mine is trying to move his website to my server. This site contains some PHP scripts ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-10-2004
Ralf
 
Posts: n/a
Default Strange URL separation

Hi,

a friend of mine is trying to move his website to my server. This site
contains some PHP scripts which are called in an uncommon way, eg:
http://xxxx/path1/path2/script.php/login

In this case, /login should be passed to script.php

This was running with Apache 1.3.27 / PHP 4.3.3 but seems not to work
on my combination of Apache 2.0.46 / PHP 4.3.2

Is there a parameter I can set to have the same behaviour? Or is this
simply impossible with Apache 2?

Thanks,

Ralf
  #2 (permalink)  
Old 12-10-2004
Michael Fuhr
 
Posts: n/a
Default Re: Strange URL separation

r.koch@formel4.de (Ralf) writes:

> a friend of mine is trying to move his website to my server. This site
> contains some PHP scripts which are called in an uncommon way, eg:
> http://xxxx/path1/path2/script.php/login
>
> In this case, /login should be passed to script.php
>
> This was running with Apache 1.3.27 / PHP 4.3.3 but seems not to work
> on my combination of Apache 2.0.46 / PHP 4.3.2


What does "seems not to work" mean? What happens? How is the PHP
script attempting to retrieve /login? Does the script assume that
PHP's register_globals is on, but it's disabled (as it should be)
on the site where the script doesn't work?

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/
  #3 (permalink)  
Old 12-11-2004
HansH
 
Posts: n/a
Default Re: Strange URL separation

"Michael Fuhr" <mfuhr@fuhr.org> schreef in bericht
news:41b9fef6$1_2@omega.dimensional.com...
> r.koch@formel4.de (Ralf) writes:
> > a friend of mine is trying to move his website to my server. This site
> > contains some PHP scripts which are called in an uncommon way, eg:
> > http://xxxx/path1/path2/script.php/login
> > In this case, /login should be passed to script.php
> > This was running with Apache 1.3.27 / PHP 4.3.3 but seems not to work
> > on my combination of Apache 2.0.46 / PHP 4.3.2

> What does "seems not to work" mean? What happens? How is the PHP
> script attempting to retrieve /login? Does the script assume that
> PHP's register_globals is on, but it's disabled (as it should be)
> on the site where the script doesn't work?

Or is apache2 configured to not-accept path info ..
http://httpd.apache.org/docs-2.1/mod...acceptpathinfo

http://httpd.apache.org/docs-2.0/upgrading.html
" The handling of PATH_INFO (trailing path information after the true
filename) has changed for some modules. Modules that were previously
implemented as a handler but are now implemented as a filter may no longer
accept requests with PATH_INFO. Filters such as INCLUDES or PHP are
implemented on top of the core handler, and therefore reject requests with
PATH_INFO. You can use the AcceptPathInfo directive to force the core
handler to accept requests with PATH_INFO and thereby restore the ability to
use PATH_INFO in server-side includes. "

HansH


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:33 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0