Where to place rewrite rules?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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>

<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]
</Directory>

Sam

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux