随笔分类 - Apache+Nginx
Nginx 支持 CI 框架的配置并禁止使用 ip 访问
摘要:#CIserver { listen 80; server_name www.ci.com; index index.php index.html index.htm; root "/servers/apps/CI"; location ~ \\.php{ fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; ##########################################pathinfo 模式 set $path_info ""; set $real_script_nam...
阅读全文
apache rewrite 规则转换 nginx rewrite 的网站
摘要:在将网站apache迁移到nginx时 相信不少人头疼rewrite规则的转换 偶然间发现下面的网站 感觉不错 推荐给大家http://www.anilcetin.com/convert-apache-htaccess-to-nginx/
阅读全文
关于apache虚拟机的NameVirtualHost错误
摘要:配置apache的虚拟机,设置不同的域名访问路径<VirtualHost 127.0.0.1:80>DocumentRoot D:\wamp\www\comic\trunk\comicServerName comic127.178.com......</VirtualHost><VirtualHost 127.0.0.1:80>DocumentRoot "D:\wamp\www\comic\trunk\comic\mh"ServerName manhua127.178.com......</VirtualHost>运行后进行访
阅读全文
JSON 在 IE 下不执行的问题
摘要:json在本地IE FF CHROME均正常执行,放到服务器上 IE 却不执行,查询资料后发现是 apache 默认编码问题.解决方法:强制声明 XMLHTTPRequest 的编码PHP:header('Content-Type:text/html;charset=UTF-8');ASP:Response.Charset = "UTF-8'"JSP:response.setHeader("Charset","UTF-8'");静态文件,可以从服务器设置Apache:AddDefaultCharset
阅读全文
浙公网安备 33010602011771号