我正在使用来自Nginx For Windows的 Windows 安装文件
但是它不允许更改安装位置,因此默认为C:\nginx
Is there a way to update the config file to change the root directory to D:\blabla
?
示例代码来自nginx.conf
server {
listen 80;
server_name localhost;
location / {
root html;
index index.html index.htm;
}
#error_page 404 /404.html;
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}