Apache quirkyness

Whether you are using Linux on the desktop or as a server, it's still good that you're using Linux. Linux related questions go here.

Moderator: General Moderators

Post Reply
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Apache quirkyness

Post by alex.barylski »

Wasn't there an Web Server forum? I can't seem to find it?

Anyways, this is a really strange problem...but:

I've been working on a program some some time and just recently got to a section which totally choked...

Basically, there was a JavaScript window.open() but the path was in the format:

Code: Select all

www.domain.com/index.php&page=about&step=X
The above URL request on my local server chokes...I'm using Ubuntu 6.10

My client was using RedHat but it worked fine on his machine...

After countless hours of tinkering and searching thousands of lines of javascript I finally located the offending line and change the above from what it was, to this:

Code: Select all

www.domain.com/index.php?page=about&step=X
That fixed the problem and I haven't heard anything since :)

But I'm stumped, other than maybe Apache specifics or OS differences such as RedHat or Gentoo, etc...maybe Window/Linux as well...there is nothing I can think of which would allow this problem to just kinda work on his machine and yet on mine, the URL was naturally invalid.

Whats really weird, is it worked on several other client machines as well, scattered around the world, so very different hosting services, setups, etc...

Mod_rewrite was the first thing I looked for, but there was nothing of the kind, so what else should I be investigating?
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

It's probably a server config thing.
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Here's my guess. One was running CGI and the other was running SAPI. Just a guess.
alex.barylski
DevNet Evangelist
Posts: 6267
Joined: Tue Dec 21, 2004 5:00 pm
Location: Winnipeg

Post by alex.barylski »

feyd wrote:It's probably a server config thing.
Anything in particular? :P

d11 I'm not sure what SAPI is but assume it has something to do with Windows...in anycase, thanks for the guess, but from what I can tell each environment was running as Apache extension/module. No CGI :(

Oieee...this is gonna cause a headache and a half :)

Thanks guys :)
User avatar
Kieran Huggins
DevNet Master
Posts: 3635
Joined: Wed Dec 06, 2006 4:14 pm
Location: Toronto, Canada
Contact:

Post by Kieran Huggins »

maybe it's a filesystem thing... if apache doesn't see the ? it could try to locate the file "index.php&page=about&step=X" on disk, causing unknown results. What fs are you running in your install of Ubuntu?
User avatar
seodevhead
Forum Regular
Posts: 705
Joined: Sat Oct 08, 2005 8:18 pm
Location: Windermere, FL

Post by seodevhead »

Perhaps your directory Options in your httpd.conf file was set to MultiViews, in which any invalid QUERY_STRING appendage is ignored and index.php would be served instead?

I've had this happen and it had me in wild goose chases trying to figure out what the heck was going on.

Depending on the Apache configuration, query strings only start after the initial ?...

ie. QUERY_STRING = param1=44&param2=99
Post Reply