NGINX在Windows上-没有指定输入文件



我在我的Windows vServer上安装了NGINX web server。只是我不能再继续了,我一直收到这样的信息"没有输入文件指定。"。

我用谷歌搜索了很多,但我找不到任何进一步的。我请求帮助。我的NGINX服务器在

下C:/nginx/html

我已经写了PHP.bat使PHP可以工作。

域名为:habbo. manage .media

什么是假的?

include       mime.types;
default_type  application/octet-stream;
#log_format  main  '$remote_addr - $remote_user [$time_local] "$request" '
#                  '$status $body_bytes_sent "$http_referer" '
#                  '"$http_user_agent" "$http_x_forwarded_for"';
#access_log  logs/access.log  main;
sendfile        on;
tcp_nopush     on;
#keepalive_timeout  0;
keepalive_timeout  65;
gzip  on;
server {
listen       80;
server_name  habbo.manag.media;
#charset koi8-r;

#error_page  404              /404.html;
# redirect server error pages to the static page /50x.html
#
error_page   500 502 503 504  /50x.html;

# proxy the PHP scripts to Apache listening on 127.0.0.1:80
#
#location ~ .php$ {
#    proxy_pass   http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~* .(eot|otf|ttf|woff|woff2)$ {
add_header Access-Control-Allow-Origin *;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
}
index index.php index.html index.htm;
include fastcgi.conf;
# root   c:/Users/Kelly Marchewa/workspace/Code/MidAmCorp/out;
root html;
location ~ .php$ {
fastcgi_split_path_info ^(.+.php)(/.+)$;
fastcgi_pass   127.0.0.1:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /.ht {
#    deny  all;
#}
}```

您没有定义根目录和服务器配置。

root   <your absolute path to root folder goes here>;
index  index.html index.htm index.php;

这定义了你的根文件夹在哪里,以及你的网站的入口点在哪里。希望这能回答你的问题。

最新更新