Please help me

Igor Sysoev igor at sysoev.ru
Wed Oct 5 13:37:23 UTC 2011


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



More information about the nginx mailing list