主机参考:VPS测评参考推荐/专注分享VPS服务器优惠信息!若您是商家可以在本站进行投稿,查看详情!此外我们还提供软文收录、PayPal代付、广告赞助等服务,查看详情! |
我们发布的部分优惠活动文章可能存在时效性,购买时建议在本站搜索商家名称可查看相关文章充分了解该商家!若非中文页面可使用Edge浏览器同步翻译!PayPal代付/收录合作 |
菜花大盗网友说: htacces规则如下说: Options -Indexes +FollowSymLinks AddDefaultCharset UTF-8 RewriteEngine On RewriteBase /
#RewriteCond %{HTTPS} off #RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301] #RewriteCond %{HTTP_HOST} !^www. #RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
<IfModule pagespeed_module>
ModPagespeed off
# exclude any paths that are not codeigniter-app related RewriteCond %{REQUEST_URI} !^/server-status RewriteCond %{REQUEST_URI} !^/server-info RewriteCond %{REQUEST_URI} !^/docs RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d <IfModule mod_php5.c> RewriteRule ^(.*)$ index.php/$1 [L] </IfModule> # the following is for rewritting under FastCGI <IfModule !mod_php5.c> RewriteRule ^(.*)$ index.php?/$1 [L] </IfModule> #PAGESPEED <IfModule mod_expires.c> ExpiresActive on
# Perhaps better to whitelist expires rules? Perhaps. ExpiresDefault "access plus 1 month" # cache.appcache needs re-requests in FF 3.6 (thx Remy ~Introducing HTML5) ExpiresByType text/cache-manifest "access plus 0 seconds"
# your document html ExpiresByType text/html "access plus 0 seconds"
# data ExpiresByType text/xml "access plus 0 seconds" ExpiresByType application/xml "access plus 0 seconds" ExpiresByType application/json "access plus 0 seconds"
# rss feed ExpiresByType application/rss+xml "access plus 1 hour"
# favicon (cannot be renamed) ExpiresByType image/x-icon "access plus 1 month"
# media: images, video, audio ExpiresByType image/gif "access plus 3 months" ExpiresByType image/png "access plus 3 months" ExpiresByType image/jpg "access plus 3 months" ExpiresByType image/jpeg "access plus 3 months" ExpiresByType video/ogg "access plus 3 months" ExpiresByType audio/ogg "access plus 3 months" ExpiresByType video/mp4 "access plus 3 months" ExpiresByType video/webm "access plus 3 months"
# htc files (css3pie) ExpiresByType text/x-component "access plus 1 month"
# webfonts ExpiresByType font/truetype "access plus 1 month" ExpiresByType font/opentype "access plus 1 month" ExpiresByType application/x-font-woff "access plus 1 month" ExpiresByType image/svg+xml "access plus 1 month" ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
# css and javascript ExpiresByType text/css "access plus 2 months" ExpiresByType application/javascript "access plus 2 months" ExpiresByType text/javascript "access plus 2 months" <IfModule mod_headers.c> Header append Cache-Control "public, no-transform" Header set Connection keep-alive </IfModule>
</IfModule> #END PAGESPEED
转为nginx规则后说: # nginx configuration by winginx.com
location / { if (!-e $request_filename){ rewrite ^(.*)$ /index.php/$1 break; } rewrite ^(.*)$ /index.php?/$1 break; }
今天蛋疼装了一下bbr,重启服务器之后nginx就挂了,查看日志提示第十六行,也就是autoindex off; 重复 淘宝找了两个都没搞定, 有没有网友可以指点一二,付费是肯定的。
lowendtalk网友说: 去stackoverflow提问不好吗?
Mr.网友说: 太长了看不懂。。。这么复杂的 rewrite 为什么不在程序里做。。。
h20网友说: 分类lighttpd却问的是apache转nginx的问题
主机参考zhujicankao.com_收集国内外VPS,VPS测评,主机测评,云服务器,虚拟主机,独立服务器,国内外服务器,高性价比建站主机相关优惠信息
详细介绍和测评国外VPS主机,云服务器,国外服务器,国外主机的相关优惠信息,商家背景,网络带宽等等,也是目前国内最好的主机云服务器VPS参考测评资讯优惠信息分享平台
这几篇文章你可能也喜欢:
- CloudCone,美国Win系统VPS云服务器少量补货,美国洛杉矶MC机房,KVM虚拟架构,3核4G内存1Gbps带宽,17.49美元/月
- 搬瓦工,日本VPS云服务器测评报告,日本CN2 GIA高端线路大带宽VPS测评,搬瓦工VPS测评,搬瓦工VPS好不好?搬瓦工VPS值得购买吗?
- ShockHosting,新加坡VPS云服务器测评报告,ShockHosting免备案VPS主机测评,VPS速度和综合性能测评,ShockHosting好不好?ShockHosting值得购买吗?
- VirMach,黑五闪购活动,年付10美元以下的美国低价便宜VPS云服务器,多种机型配置随机闪购秒杀,低至3美元/年
- Tmthosting,黑色星期五特别优惠,海外VPS云服务器低至6折/便宜特价独服,美国西雅图机房,KVM虚拟架构,NVME SSD/HDD,1核512M内存1Gbps带宽,4.19美元/月
本文由主机参考刊发,转载请注明:国外vps论坛_又来请教.htaccess转nginx的问题了,依然急求在线等 https://zhujicankao.com/32915.html
评论前必须登录!
注册