Create a gist now

Instantly share code, notes, and snippets.

@jamiemill /rewrite.log Secret
Created Jan 2, 2012

What would you like to do?
apache rewrite problem
[rid#7f05d59e80a0/initial] (2) init rewrite engine with requested uri /img/skylight-logo.png
[rid#7f05d59e80a0/initial] (3) applying pattern '^(.*)$' to uri '/img/skylight-logo.png'
[rid#7f05d59e80a0/initial] (4) RewriteCond: input='/img/skylight-logo.png' pattern='!-d' => matched
[rid#7f05d59e80a0/initial] (4) RewriteCond: input='/img/skylight-logo.png' pattern='!-f' => matched
[rid#7f05d59e80a0/initial] (2) rewrite '/img/skylight-logo.png' -> '/index.php?url=/img/skylight-logo.png'
[rid#7f05d59e80a0/initial] (3) split uri=/index.php?url=/img/skylight-logo.png -> uri=/index.php, args=url=/img/skylight-logo.png
[rid#7f05d59e80a0/initial] (2) local path result: /index.php
[rid#7f05d59e80a0/initial] (2) prefixed with document_root to /var/www/mysite/current/webroot/index.php
[rid#7f05d59e80a0/initial] (1) go-ahead with /var/www/mysite/current/webroot/index.php [OK]
<VirtualHost *:8080>
ServerName mysite.com
# note 'current' is a symlink to a timestamped release directory elsewhere - could this be a problem?
DocumentRoot /var/www/mysite/current/webroot
<Directory /var/www/mysite/current/webroot>
Options FollowSymLinks
AllowOverride None
Order allow,deny
Allow from all
</Directory>
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Location /server-status>
SetHandler server-status
Order Deny,Allow
Deny from all
Allow from 127.0.0.1
</Location>
RewriteEngine On
RewriteLog /var/log/apache2/mysite-rewrite.log
RewriteLogLevel 9
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ /index.php?url=$1 [QSA,L]
</VirtualHost>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment