-
-
Save jamiemill/9a83ad3155ee521d44c5 to your computer and use it in GitHub Desktop.
apache rewrite problem
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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