Permalink
Browse files

alias is better than rewrite

  • Loading branch information...
1 parent 5cc6fe0 commit e66f6a0b04b5e6eba6c97d3424dbcd8a059fc492 @defanator committed Jan 11, 2012
Showing with 2 additions and 3 deletions.
  1. +2 −3 README.md
View
@@ -143,9 +143,8 @@ header `X-Accel-Internal` to be present.
2. Special internal location:
location /int/ {
- # root must be equal to Apache's DocumentRoot
- root /var/www/site.com;
- rewrite ^/int/(.*)$ /$1 break;
+ # path must be equal to Apache's DocumentRoot
+ alias /var/www/site.com/;
internal;
}

0 comments on commit e66f6a0

Please sign in to comment.