Mon 29 May 2006
After fixing a SJSD svn trunk regression bug reported in the bug tracking system, I tried to make eZ installed in a subdir work with rewrite rules in apache 1.3 (not virtual host setup), as I already achieved it in lighttpd, it must be feasible in apache as well: the mod_rewrite can achieve almost anything as long as you can come up with. (PHP-CGI is used in the apache)
This is the .htaccess (I have eZ installed in /ez38, so this .htaccess is under /ez38) required to have eZ work with apache rewrite properly in a subdir:
RewriteEngine On RewriteRule !\.(gif|jpe?g|png|css|js|html|xml|ico)|var(.+)storage.pdf(.+)\.pdf$ index.php DirectoryIndex index.php
In order for apache to read .htaccess in each dir, something like this has to be set in the httpd.conf file for apache:
<Directory />
Options FollowSymLinks
AllowOverride All
</Directory>
UPDATE (29/May/2006): *.ico should not be rewriten to index.php
RSS feed for comments on this post. TrackBack this post
May 29th, 2006 at 12:38 pm
How did apache 1.3 perform compared to lighttpd ??
May 29th, 2006 at 3:06 pm
that’s what I am interested as well, will benchmark them some time