httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sam Carleton" <>
Subject [users@httpd] Where to place rewrite rules?
Date Sat, 29 Mar 2008 03:42:34 GMT
My application uses Apache to run a closed network Kiosk system.  One
of my customers is having very strange performance issues, it is
taking 45 seconds to load 12 thumbnail files that are only about 4K in
size.  I am using some rewrite rules to make dynamic pages and file
handlers look static to the kiosk browsers so they will cache them.

In analyzing my customers log file from running Filemon (Windows tool
to log file IO), it looks like Apache is trying to find the URL before
the RewriteRules are running.  Is this normal?  If not, do I have my
rewrite rules in the right place?

DocumentRoot "D:/MSDev/PhotoParata/httpd/htdocs"
SetEnv TMP "D:/MSDev/PhotoParata/httpd/tmp"
<Directory />
    Options FollowSymLinks
    AllowOverride None
    Order deny,allow
    Deny from all
    Satisfy all

<Directory "D:/MSDev/PhotoParata/httpd/htdocs">
    Options SymLinksIfOwnerMatch
    AllowOverride all
    Order allow,deny
    Allow from all
    PhotoParataCfg conf/PhotoParata.conf
    RewriteEngine On
    RewriteRule ^images/([^/]+)/([^/]+)$ theImage?fldoid=$1&imgoid=$2 [L]
    RewriteRule ^images/([^/]+)/([^/]+)/([^/]+)$
theImage?fldoid=$1&imgoid=$2&tn=$3 [L]
    RewriteRule ^category/([^/]+)$ index.php?fldoid=$1 [L]
    RewriteRule ^category/([^/]+)/i/([^/]+)$ index.php?fldoid=$1&imgoid=$2 [L]
    RewriteRule ^category/([^/]+)/p/([\d]*)$ index.php?fldoid=$1&p=$2 [L]


The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message