Part of the EllisLab Network
   
 
Routing problem under Abyss server. it’s a bug and i need help
Posted: 18 March 2007 04:43 AM   [ Ignore ]  
Grad Student
Rank
Total Posts:  89
Joined  11-28-2006

I’ve traced into CI’s code, and here is what i found.

Under a normal Apache enviroment, CI will work fine with following settings in app/config/config.php

$config['uri_protocol']    = "AUTO";//or PATH_INFO which is no different

and when running to library/router.php, in _parse_routes() method, a normal url like “http://localhost/index.php/test” can be stored in $this->segments like

Array
(
    
[0] => test
)


This is the only working case.

But under Abyss server in FAST CGI mode, there is no “PATH_INFO”, so both “AUTO” and it cant work. if those are used i will end up with a default controller which is commonly the “Welcome” controllor. then i chose “REQUEST_URI” to go :

$config['uri_protocol']    = "REQUEST_URI";


then in the same _parse_routes() method of the same rounter.php file, url was differently stored in $this->segment as:

Array
(
    
[0] => index.php   //a file name is added to this array
    
[1] => test
)

and the browser will throw me a 404 error. the test controllor wont be executed. The odd is it’s there on the harddisk


also if i use “REQUEST_URI” under Apache. it will show the same problem..

now i guess the problem must be somewhere around the process dealing with “REQUEST_URI” data.

 Signature 

Mastery in paining you with code.

Profile
 
 
Posted: 18 March 2007 07:52 AM   [ Ignore ]   [ # 1 ]  
Grad Student
Rank
Total Posts:  89
Joined  11-28-2006

also for an address like “http://localhost/index.php/test”
under abyss server a php script can’t fetch the url data “/test” into $_GET, which will be used to generate routes when “AUTO” is used.

 Signature 

Mastery in paining you with code.

Profile
 
 
   
 
 
Post Marker Legend
New Topic New posts Hot Topic Hot Topic with new posts New Poll New Poll Moved Topic Moved Topic Sticky Topic Sticky topic
Old Topic No new posts Hot Old Topic Hot Topic with no new posts Old Poll Old Poll Closed Topic Closed Topic Announcement Announcements
Theme
Change Theme
Visitor Statistics
The most visitors ever was 719, on June 06, 2008 10:16 AM
Total Registered Members: 66424 Total Logged-in Users: 30
Total Topics: 84775 Total Anonymous Users: 0
Total Replies: 454933 Total Guests: 265
Total Posts: 539708    
Members ( View Memberlist )