Skip to content

Instantly share code, notes, and snippets.

@jamiemill
Created January 2, 2012 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jamiemill/9a83ad3155ee521d44c5 to your computer and use it in GitHub Desktop.
Save jamiemill/9a83ad3155ee521d44c5 to your computer and use it in GitHub Desktop.
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