On Thu, Sep 08, 2011 at 01:36:09PM -0400, magicbear wrote: > server { > listen 80; > server_name domain.com www.domain.com; > root /var/www/domain.com; > include /etc/nginx/fastcgi_php; > index index.php index.html; > rewrite ^/admin https://$http_host$request_uri permanent; > } It's better to move /admin rewrite inside "location ^~ /admin". -- Igor Sysoev