Articles of configuration

Postfix不尊重mysql别名域

所以设置是使用后缀,dovecot,postfixadmin和mysql。 我已经configuration后缀pipe理员别名一个域,“name.co.uk”到“name.net”,我在数据库中看到这个,所以没有问题。 但是,当发送邮件到“name.co.uk”它不会被发送到“name.net”,我可以看到这个事实,它不出现在邮箱,而是如果放在虚拟邮件目录旧的域名(这不应该存在于第一位!)。 在通过日志文件之后,似乎没有考虑到别名。 #~ postconf -n alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 dovecot_destination_recipient_limit = 1 home_mailbox = Maildir/ html_directory = no inet_interfaces = all inet_protocols = all […]

nginx安全链接总是回复200

我正在尝试使用nginx安全链接模块,我有一个使用此nginxconfiguration的Amazon EC2服务器: location ~ /([1-9]+(0)*)/(image|music)/s-([0-9a-zA-Z]+)/source { secure_link $arg_token,$arg_expires; secure_link_md5 "$uri $arg_expires secret"; add_header 'Access-Control-Allow-Origin' "$http_origin"; add_header 'Access-Control-Allow-Credentials' 'true'; add_header 'Cache-Control' 'no-cache, no-store, max-age=0'; if ($secure_link = "") { return 403; } if ($arg_download != "") { add_header 'Content-Type' "application/octet-stream"; add_header 'Content-Disposition' "attachment"; } if ($secure_link = "0") { return 200; } #?token=_e4Nc3iduzkWRm01TBBNYw&expires=2147483647 } location ~* […]

在nginx中重写/?

编辑:我也有我的洋葱这个问题。 https://tor.stackexchange.com/questions/15099/nginx-directory-disclosures 试图做一个简单的redirect,但我无法弄清楚。 我只是想请求包括最后/正斜杠。 所以/foo被redirect到/foo/ 。 这是我尝试过的一些事情。 rewrite ^/foo /foo/ permanent; location ~ /foo(.*)$ { rewrite ^ /foo/ permanent; } rewrite ^(/foo)(.*)$ http://website.com/foo/ permanent; rewrite ^/(foo.*) /foo/ permanent;

为nginx中的每个元素设置caching/过期时间?

在configurationnetworking服务器(nginx)时,设置和过期时间并caching客户端浏览器请求的每个目录中的每个元素的情况并不常见? 我刚刚在nginx网站和servervault上find了一些到期时间的例子: location ~* \.(?:ico|css|js|gif|jpe?g|png)$ { expires 30d; add_header Pragma public; add_header Cache-Control "public"; } location ~* \.(?:css|gif|jpe?g|png)$ { expires max; } 如果我想通过设定每个元素的到期时间,我将如何写location线? location ~* \.(?:*)$ { expires 2d; add_header Pragma public; add_header Cache-Control "public" }

Postfix / Dovecot-LMTPconfiguration混乱

阅读了许多关于configurationPostfix将邮件传递给Dovecot-LMTP的教程,我仍然很困惑,因为它们经常是矛盾的。 main.cf 一些教程说,必须添加以下内容: virtual_transport = dovecot dovecot_destination_recipient_limit = 1 其他人则说: virtual_transport = lmtp:unix:private/dovecot-lmtp 还有人说: virtual_transport = lmtp:unix:private/lmtp master.cf 一些教程暗示,没有什么需要添加到Postfix的configuration文件,以将邮件传递给Dovecot-LMTP,但其他人指示您添加以下内容: dovecot unix – nn – – pipe flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/dovecot-lda -d $(recipient) 我如何validationDovecot-LMTP实际上是正在递交的邮件,而且Postfix并没有将其发送到邮箱本身?

apachectl -f /etc/apache2/apache2.conf和apachectl start之间的区别

我正在运行Debian 8 Jessie,而且我的Apacheconfiguration有一个PHP问题 。 运行Apache: apachectl -f /etc/apache2/apache2.conf 在运行守护进程的传统方式时,提供所需的结果/行为不会: apachectl start 我该如何去确定这两个选项之间的差异以隔离我的问题?

Postfix忽略smtpd_recipient_restrictions的顺序

我每天收到大约50封被拒绝的电子邮件,因为发送电子邮件地址中存在拼写错误,并且正在reject_unknown_sender_domain : Jul 10 12:21:31 serverb3 postfix/smtpd[6647]: NOQUEUE: reject: RCPT from smtp.correctly-spelt-domain.co.uk[XXXX]: 450 4.1.8 <[email protected]>: Sender address rejected: Domain not found; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<smtp.correctly-spelt-domain.co.uk> 我已经将[email protected] OK添加到/etc/postfix/sender_access ,运行/etc/postfix/sender_access postmap /etc/postfix/sender_access并重新启动postfix。 尽pipecheck_sender_access hash:/etc/postfix/sender_access出现在我的smtpd_recipient_restrictions列表之前reject_unknown_sender_domain电子邮件仍然被拒绝的原因。 为什么是这个,我该如何解决? Postfix v2.11.3 输出postconf -n : alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases biff = no command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = […]

Nginx的“auth_basic”string编码

nginxconfiguration文件中正确的编码/字符集是什么,以显示HTTPauthentication信息中的突出字符? 例如,这个conf文件: server { … location / { auth_basic "Zone sécurisée"; auth_basic_user_file .htpasswd; } } 在Firefox的提示窗口显示: “Zonesécurisée” 没有真正的解决scheme或在网上find解释。 我试着用confreplaceconf文件中的é ,用&amp; ,通过&#233 ,通过=C3=A9或添加charset utf-8指令或=?UTF-8? 在string的开头,但没有任何工作! 官方的nginx文档,谈论一个“string”,没有更多解释强调字符的编码。 注意:我对Apache的.htaccess文件没有问题

默认的资源pipe理器collections夹从哪里拉出

我正在使用Windows Server 2012 R2服务器,并试图自定义默认的资源pipe理器collections夹(而不是Internet Explorer)。 我知道我可以通过将它们放在C:\Users\<username>\Links添加新的collections夹,但是当新用户login时,他们会获得默认链接( Desktop,Downloads & Recent Places ),我试图find那些被从中拉出。 这是不是默认的用户configuration文件,因为我已经检查该用户的链接文件夹。

无法使用nginx访问Jenkins

我有jenkins和运行使用nignx,但它是不安全的,所以我遵循digitalOcean 这个 & 这一点,以确保ningx与反向代理&ssl的几个指南。 现在我不能访问jenkins了 – 我有一个运行在80端口的博客,所以不想按照上面的指南直接redirect到jenkins,所以不得不四处玩。 总体而言,没有工作,并已经多次改变了default文件没有成功。 已经尝试了一些解决schemesol1 , sol2但没有喜悦。 不是这个问题的专家,因此达成你们! 我的/etc/nginx/sites-available/default如下所示: # Default server configuration # server { listen 80 default_server; listen [::]:80 default_server; ssl_dhparam /etc/ssl/certs/dhparam.pem; root /var/www/html # Add index.php to the list if you are using PHP index index.html index.htm index.nginx-debian.html; server_name MYDOMAIN.com www.MYDOMAIN.com; location / { # First attempt to […]