server {
root /usr/share/nginx/www;
index index.html index.htm index.php;
server_name localhost;
location / {
try_files $uri $uri/ /index.html;
}
location /phpmyadmin {
root /usr/share/nginx;
index index.php;
}
location ~ ^/phpmyadmin/.*\.php$ {
root /usr/share/nginx;
include fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
location /doc {
root /usr/share;
autoindex on;
allow 127.0.0.1;
deny all;
}
location /images {
root /usr/share;
autoindex off;
}
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
}
}
nginx 添加phpmyadmin支持目录映射
最新推荐文章于 2024-12-16 15:51:52 发布