小编Mar*_*tin的帖子

nginx,别名,php-fpm = 文件未找到

我正在尝试使用 DAViCal 设置 nginx。但是,我在日志中收到一个“文件未找到”,其中包含“FastCGI sent in stderr:”Primary script unknown”。看起来我的别名有问题,但我确实想不通。

我的虚拟主机:

server {
listen   80; ## listen for ipv4; this line is default and implied
listen   [::]:80 default_server ipv6only=on; ## listen for ipv6

root /var/www-data;
index index.html index.htm index.shtml index.php;

# Make site accessible from http://localhost/
server_name just.a.server;

location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to displaying a 404.
    try_files $uri $uri/ /index.html;
    ssi on;
    # Uncomment to enable naxsi …
Run Code Online (Sandbox Code Playgroud)

php nginx alias fastcgi php-fpm

10
推荐指数
1
解决办法
3万
查看次数

标签 统计

alias ×1

fastcgi ×1

nginx ×1

php ×1

php-fpm ×1