Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Thread Tools Display Modes
Old 29th January 2009, 00:05
marra87 marra87 is offline
Join Date: Sep 2006
Posts: 43
Thanks: 0
Thanked 0 Times in 0 Posts
Default lighttpd vs apache problem

I have two webservers.
Local: Apache 2.2
Remote: Lighttpd 1.4.13

I'm using the following rewrite rules:
RewriteEngine  on
RewriteRule ^/(css|gfx|js)/(.*)	/director.php?path=$1&url=$2	[L]
url.rewrite =  ("^/(css|gfx|js)/(.*)" => "/director.php?path=$1&url=$2")
When I try to reach http://mydomain.com/js/test.js?_=1233178574125
The variables in director.php is:
$_REQUEST['path'] = js
$_REQUEST['url'] = test.js on apache
$_REQUEST['url'] = test.js?_=1233178574125 on lighttpd

Anyone understands why?

The ?_=1233178574125 string gets added when im using ajax requests (jquery), is it possible to remove that?
I think it is a caching mechanism... that the files doesn't get cached...
Reply With Quote
Sponsored Links


Thread Tools
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 On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 11:49
ISPConfig, Apache, encodings and charsets problem... erebus Installation/Configuration 1 26th September 2007 13:50
ISPConfig for Lighttpd (Without Apache) meekish General 4 10th September 2006 23:23
Apache language problem toyito Installation/Configuration 2 30th November 2005 05:25
UI Problem with additonal Apache directives tstich General 3 3rd November 2005 15:11

All times are GMT +2. The time now is 03:40.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.