小编x-y*_*uri的帖子

nginx + fcgiwrap:fastcgi_param 的顺序怎么这么重要?

我正在运行Debian 6.0.3( squeeze), nginx-0.7.67, fcgiwrap-1.0-1+squeeze1. 这是测试脚本:

#!/usr/bin/perl
use 5.010;
use warnings;
use strict;

use Data::Dumper;

print "Content-Type: text/html\n\n";
say Dumper {map {$_ => $ENV{$_}} 'SCRIPT_NAME', 'DOCUMENT_ROOT', 'WHATEVER'};
say "$<, $>, $(, $)";
Run Code Online (Sandbox Code Playgroud)

这是nginx配置:

server {
    server_name   domain.com;
    root   /home/yuri/6;
    access_log   /var/log/nginx/domain.com-access.log;
    error_log   /var/log/nginx/domain.com-error.log;

    location /cgi-bin/ {
        fastcgi_pass   unix:/var/run/fcgiwrap.socket;
        fastcgi_param   DOCUMENT_ROOT   $document_root;
        fastcgi_param   DOCUMENT_ROOT   /home/yuri/7/;
        fastcgi_param   SCRIPT_NAME   $fastcgi_script_name;
        fastcgi_param   WHATEVER   1;
        fastcgi_param   WHATEVER   2;
    }

    location /1.php {
        fastcgi_pass   unix:/var/run/php5-fpm.sock;
        fastcgi_param   PHP_ADMIN_VALUE   cgi.fix_pathinfo=1;
        fastcgi_param …
Run Code Online (Sandbox Code Playgroud)

nginx fastcgi cgi

5
推荐指数
1
解决办法
8258
查看次数

来自您的 IP 地址的不请自来邮件的异常率

在我的服务器我重定向邮件,抵达in@example.com,到manager1@gmail.commanager2@gmail.com使用/etc/aliases的文件。

最近我在我的my.email@gmail.com邮箱中收到了以下电子邮件(postmaster@example.com邮件被重定向到):

Received: by 10.52.34.73 with SMTP id ...;
        Sun, 27 Apr 2014 03:37:39 -0700 (PDT)
...
Received: from myhost (... [16.19.64.110])
        by mx.google.com with ESMTPS id ...
        for <my.email@gmail.com>
        (version=TLSv1 cipher=RC4-SHA bits=128/128);
        Sun, 27 Apr 2014 03:37:39 -0700 (PDT)
...
Received: from Debian-exim by myhost with local (Exim 4.72)
    id ...
    for postmaster@example.com; Fri, 25 Apr 2014 13:17:05 +0300
...
Date: Fri, 25 Apr 2014 13:17:05 +0300 …
Run Code Online (Sandbox Code Playgroud)

exim email-bounces

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

`systemctl disable --now postgresql` 不会停止守护进程

我正在运行来自 apt.postgresql.org 的 Debian Stretch 和 PostgreSQL 10。当我做:

postgresql disable --now postgresql
Run Code Online (Sandbox Code Playgroud)

数据库服务器不会停止。它说:

Synchronizing state of postgresql.service with SysV service script with /lib/systemd/systemd-sysv-install.                                                                                                
Executing: /lib/systemd/systemd-sysv-install disable postgresql                                      
insserv: warning: current start runlevel(s) (empty) of script `postgresql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `postgresql' overrides LSB defaults (0 1 6).
Run Code Online (Sandbox Code Playgroud)

但这可能并不重要。

systemctl disable --now postgresql@10-main做这份工作,但我对postgresql单位很好奇。它的start, stop,任务restart工作reload正常。 …

postgresql systemd systemctl

5
推荐指数
0
解决办法
2179
查看次数

MTA 可以通过中继发送邮件而不被告知吗?

我正在考虑向域添加 SPF。所以我担心在某些情况下我的 MTA 在发送邮件时会使用一些中继。比如,当目标服务器太忙时?我主要对postfix's 或exim's 默认设置感兴趣。

email postfix spf exim

5
推荐指数
1
解决办法
491
查看次数

debian-keyring 和 debian-archive-keyring 之间的区别?

我需要两者来安装软件包吗?其中每一个的目的是什么?

debian apt debian-archive-keyring

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