Home > Backend Development > PHP Tutorial > nginx伪静态 感谢

nginx伪静态 感谢

WBOY
Release: 2016-06-13 11:32:50
Original
868 people have browsed it

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 />
Copy after login


搞了一下午,无论访问www.aaa.com/yy 还是访问www.aaa.zz,   其实都指向了默认的xx分组
崩溃  求助   感谢

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template