随笔分类 - nginx
摘要:我在本地配置了虚拟域名用的是phpstudy 只需要在nginx中找到 \nginx\conf 找到nginx.conf或者是vhosts.conf 这个得看你的虚拟域名在那个文件 然后添加以下代码就行了 location ~* \.(gif|jpg|png|bmp)$ { expires 30d;
阅读全文
摘要:location ~ \.php { #去掉$ root E:/phpStudy/WWW/tp/public/; fastcgi_pass 127.0.0.1:9000; fastcgi_index index.php; fastcgi_split_path_info ^(.+\.php)(.*)$
阅读全文

浙公网安备 33010602011771号