近期
- 本站域名从07q.net全面301至suancaiyu.xyz(含义更贴切,全拼虽然长了一些,但能体现含义)
- 暂不考虑启用SSL(最大原因是国内很多服务没有SSL,导致升级遇到很大困境)
- 换工作之后,贴日志甚少,1是忙,2是懒.
- 大概如上,后期还会做一些调整.期待.
贴一个301配置
下面是Linux-Nginx的301永久转发配置:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | server { listen 80; server_name www.07q.net 07q.net ;# 绑定的域名 index index.html index.htm index.php default.html default.htm default.php; root /siteXXXXXX;# 网站目录 rewrite ^/(.*) http://www.bckf.cn/$1 permanent;# 要301跳转的地址 location ~ .*\.(php|php5)?$ { try_files $uri =404; fastcgi_pass unix:/tmp/php-cgi.sock; fastcgi_index index.php; include fcgi.conf; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } access_log off; } |