nginx伪静态求助 感谢
<br />Options +FollowSymLinks<br /><IfModule mod_rewrite.c><br />RewriteEngine on<br />RewriteCond %{REQUEST_FILENAME} !-d<br />RewriteCond %{REQUEST_FILENAME} !-f<br />RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]<br /></IfModule><br /><br />###########################华丽丽的分界线#################<br />#上面是原来htaccess中的url重写配置(apache环境),thinkphp项目,有xx、yy、zz三个分组,xx是默认分组<br />#下面是我要配置的虚拟机<br />##########################################################<br />server {<br /> listen 80;<br /> server_name www.aaa.com;<br /> location / {<br /> root E:/webroot;<br /> index index.html;<br /> include fastcgi_params;<br /> <br /> rewrite ^(.*)$ /index.php?$1 last;<br /> }<br /> error_page 404 = http://www.aaa.com/error404.html;<br /> location ~ \.php$ {<br /> root E:/webroot;<br /> fastcgi_pass 127.0.0.1:9000;<br /> fastcgi_index index.html;<br /> fastcgi_param SCRIPT_FILENAME E:/webroot$fastcgi_script_name;<br /> include fastcgi_params;<br /> }<br />}<br /><br />
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号