【发布时间】:2020-04-18 18:36:31
【问题描述】:
文件夹结构
---C:\
------webserver
---------------mysql
---------------nginx
---------------php
---------------phpMyAdmin <<<<<<<< this is folder i want to access
---------------www <<<<<<<< this is root
---------------run.bat
---------------stop.bat
nginx.conf
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
root C:\webserver\www;
index index.php index.html index.htm;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
}
}
我想输入http://127.0.0.1/phpmyadmin,它会重定向到“phpmyadmin”文件夹(根目录外)
现在我必须将“phpmyadmin”文件夹放在“www”文件夹中
如果大家有解决办法请告诉我,谢谢
【问题讨论】: