如何配置YAF框架与Nginx,实现长尾关键词优化?
- 内容介绍
- 文章标签
- 相关推荐
本文共计95个文字,预计阅读时间需要1分钟。
plaintext配置服务器监听80端口
server { listen 80; #listen [::]:80; server_name *.a.com; index index.html index.htm index.php default.html default.htm default.php; root /web/wxgroup/public; include other.conf; #error_page 404 /404.html; location ~ .*\.php(/|$) { # comment try_files $uri =404; to enable pathinfo # try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; # include pathinfo.conf; } if (!-e $request_filename) { rewrite ^/(.*) /index.php/$1 last; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } access_log /home/wwwlogs/a.com.log access; }
本文共计95个文字,预计阅读时间需要1分钟。
plaintext配置服务器监听80端口
server { listen 80; #listen [::]:80; server_name *.a.com; index index.html index.htm index.php default.html default.htm default.php; root /web/wxgroup/public; include other.conf; #error_page 404 /404.html; location ~ .*\.php(/|$) { # comment try_files $uri =404; to enable pathinfo # try_files $uri =404; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; include fastcgi.conf; # include pathinfo.conf; } if (!-e $request_filename) { rewrite ^/(.*) /index.php/$1 last; } location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ { expires 30d; } location ~ .*\.(js|css)?$ { expires 12h; } access_log /home/wwwlogs/a.com.log access; }

