nginx目录权限控制求助
<br />server {<br /> listen 80;<br /> server_name admin.my.com;<br /><br /> location / {<br /> root D:/www/webroot;<br /> index index.php;<br /> }<br /><br /> error_page 404 = http://admin.my.com/error.html;<br /><br /> location ~ \.php$ {<br /> root D:/www/webroot;<br /> fastcgi_pass 127.0.0.1:9000;<br /> fastcgi_index index.php;<br /> fastcgi_param SCRIPT_FILENAME D:/www/webroot$fastcgi_script_name;<br /> include fastcgi_params;<br /> }<br />}<br />
<br /><VirtualHost *:80><br /> ServerAdmin [email protected]<br /> DocumentRoot /<br /> ServerName admin.my.com<br /> Alias / "D:/www/webroot/"<br /> <Directory "D:/www/webroot/"><br /> Options FollowSymLinks MultiViews ExecCGI<br /> <br /> Order allow,deny<br /> Allow from all <br /> </Directory><br /> ErrorLog logs/admin-error.log<br /> #CustomLog logs/admin-access.log common<br /></VirtualHost><br />