Articles of Debian

Apache 2.2'a2dissite默认'不删除对其文档根目录的访问

我刚刚在Raspian / Debian上安装了Apache 2.2的全新安装,以便通过SSL托pipe一个站点。 所以,在任何事情之前,我使用a2dissite default从/var/www/删除80上的默认站点。 然后,我将我的新网站添加到/var/www/mysite并为此网站创build了一个完全不同的configuration文件,使用443上的SSL,并使用a2ensite启用它。 然而,一个sudo service apache2 reload ,虽然我的新网站按照预期在端口443上工作,我仍然能够访问端口80上的“默认”网站,作为新的网站是默认目录手段的子文件夹新的站点可在http:// domain / mysite上find 我找不到默认站点/目录configuration以外的任何地方,而不是默认configuration文件,这不会出现在sites-enabled (只有新的站点configuration)。 (如果我编辑默认configuration,但将其保留在站点中 – 可用,则更改不会被提取,这表明不在apache发现此configuration的位置。) 那么,apache在80端口上的/var/www目录是什么? 它是一个硬编码的目录,应该没有覆盖它? 为了解决这个问题,我不得不重新启用默认站点,但是将目录更改为指向新站点之外的某处,以避免提供非SSL访问。

与Apache域清漆configuration

我在Debian上安装了varnish。 我在http://example.com上有一个在Apache上运行的网站 这是我的/etc/varnish/default vcl 4.0; backend default { .host = "example.com"; .port = "8080"; } 清漆开始,我可以看到网站的内容在http://127.0.0.1:6081/ 响应标题: Pragma: no-cache Date: Tue, 25 Aug 2015 12:29:38 GMT Content-Encoding: gzip Server: Apache/2.4.10 (Ubuntu) Age: 0 X-Powered-By: PHP/5.6.4-4ubuntu6.2 Vary: Accept-Encoding Content-Type: text/html; charset=UTF-8 Via: 1.1 varnish-v4 Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0 X-Varnish: 229436 Connection: keep-alive Accept-Ranges: bytes […]

Omnibus在debian挤压上失败

我正在使用omnibus( https://github.com/chef/omnibus )为软件构buildrpm / deb软件包。 构build失败,出现以下错误: [NetFetcher: openssl] I | Downloading from `https://www.openssl.org/source/openssl-1.0.1p.tar.gz' /usr/lib/ruby/1.9.1/net/http.rb:799:in `connect': SSL_connect SYSCALL returned=5 errno=0 state=SSLv2/v3 read server hello A (OpenSSL::SSL::SSLError) 我试图升级openssl但问题仍然存在。 有人可以帮助我找出问题,并帮助我解决这个问题。

未能满足Debian7的依赖

我把debian的dist-upgrade从7.8版本升级到了8.1版本。 然后我有一些旧的PHP编译器不得不恢复。 自从降级以来,我试图做一个远程升级 The following packages have unmet dependencies: coreutils : PreDepends: libacl1 (>= 2.2.51-8) but it is not going to be installed PreDepends: libattr1 (>= 1:2.4.46-8) but it is not going to be installed dpkg : PreDepends: tar (>= 1.23) but it is not going to be installed util-linux : Depends: tzdata (>= 2006c-2) […]

如何在Debian上安装PHP xdiff扩展?

我正在尝试在Apache 2和PHP 5.4.44版本的Debian上安装PHP xdiff扩展 ,但是我无法正常工作。 我尝试了以下 pecl install xdiff 但是我得到错误: […] checking for PHP prefix… /usr checking for PHP includes… -I/usr/include/php5 -I/usr/include/php5/main -I/usr/include/php5/TSRM -I/usr/include/php5/Zend -I/usr/include/php5/ext -I/usr/include/php5/ext/date/lib checking for PHP extension directory… /usr/lib/php5/20100525 checking for PHP installed headers prefix… /usr/include/php5 checking if debug is enabled… no checking if zts is enabled… no checking for re2c… no […]

无法启动nginx:“code = exited,status = 1 / FAILURE”

我刚刚在Debian Jessie上安装了nginx,我无法启动它: $ sudo /etc/init.d/nginx start [….] Starting nginx (via systemctl): nginx.serviceJob for nginx.service failed. See 'systemctl status nginx.service' and 'journalctl -xn' for details. failed! $ systemctl status nginx.service ● nginx.service – A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled) Active: failed (Result: exit-code) since Sat 2015-08-29 17:54:15 EDT; […]

BIND DNS到DNSSEC转换转发器

我有一个内部唯一的DNS服务器在Debian的BIND 9.8.4上运行,这会recursion并caching除了内部域(ourdomain.lan)以外的所有查询到OpenDNS。 我希望做的是当发生recursion时,让所有内部查询安全或不“转换”为安全,以便所有离开我们networking的查询都是DNSSEC查询。

Debian,DKIM和Exim4永远不会返回公钥

我想在Debian的考试邮箱服务器上使用DKIM。 我的DNS设置是: @ IN TXT "v=spf1 mx -all" 27564764._domainkey.example.com IN TXT "v=DKIM1; k=rsa; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCwQA5ED2afrQUFD9K7TBFLMtj74c9YAeKi+OCwBlCLT0fNexPT/23mTTtwEA1ykaSmYyx0Pxqzh7bkBAN4tKGsOtBSJB402RNurhhkEULpTelc5Gtvmxl8Iu2gQ7lvfnPqBM0x4ogVzKizTxnW0BVTffFsdUieVuHeGxmvZv3ODQIDAQAB" 用这个命令testing: host -t txt 27564764._domainkey.example.com 它总是返回: 27564764._domainkey.example.com descriptive text "v=DKIM1" 我的公钥会丢失! 有谁能够帮助我? 非常感谢你!!!

无法重新加载Apache

我试图build立一个子域,但启用它并重新加载Apache,我得到这个错误: Job for apache2.service failed because the control process exited with error code. See "systemctl status apache2.service" and "journalctl -xe" for details. systemctl status apache2.service显示: ● apache2.service – LSB: Apache2 web server Loaded: loaded (/etc/init.d/apache2) Active: active (running) (Result: exit-code) since Tue 2015-09-01 01:03:23 UTC; 10h ago Docs: man:systemd-sysv-generator(8) Process: 5359 ExecReload=/etc/init.d/apache2 reload (code=exited, status=1/FAILURE) […]

Debian月度networking统计并在重启后保留它们

我有一台运行Debian 8的VPS服务器,带宽限制在每月100GB。由于提供商的控制面板没有提供适当的信息,我想创build一些脚本来检查我消耗了多less到目前为止通过HTTP.I已经准备好了所有的nginx和CGI,但我不知道如何才能正确地得到stats,因为/ sys / class / net / * / statistics中的计数器只显示总量指定它是每月,无论如何,当服务器重新启动时,它们将被擦除。 所以我的问题是,如果有任何程序可以帮助我每月查看统计信息,那么它可以是自己的Web界面或类似的东西,但我更喜欢简单的东西,以便我可以自己做Web部分,因为我正在学习,这可能是很好的练习