现在位置 >首页 > 2012年02月发表的文章
CodeIgniter Nginx 与Apache 重写规则
CodeIgniter Nginx 与Apache 重写规则 CodeIgniter Nginx Config server { server_name .example.com; access_log /var/log/nginx/example.com.access.log; root /var/www/example.com/html; index index.php index.html index.htm; # enforce www (exclude certain subdomains) # if ($host !~* ^(www|subdomain)) # { # rewrite ^/(.*)$ $scheme://www.$host/$1 permanent; # } # enforce NO www if ($host ~* ^www\.(.*)) { set $host_without_...
阅读全文
不想听你唠叨×