因此,我想将我的Nginx托管在我的保管箱中,在所有设备上同步它,以便我可以在所有设备上处理项目。尽管nginx似乎不喜欢它。
不确定是否可行,但是有没有办法退出根目录?下面看到我的根目录使用../
进行回退,这有可能吗?
人们说我必须使用绝对路径(即:D:\myfolder\files\root
),这是确定的吗?
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
sendfile on;
keepalive_timeout 65;
server {
listen 80;
server_name localhost;
root "../../../projects/websites/eshare/public";
location / {
index index.html index.htm index.php;
}
error_page 500 502 503 504 /50x.html;
location ~ \.php$ {
fastcgi_pass 127.0.0.1:9123;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include fastcgi.conf;
}
}
}