我想查看哪些软件包可用于更新/升级而不实际更改任何文件,因为有些软件包我不想更新。那么是否可以在例外情况下进行 apt-get update 。
如果我不在虚拟主机内设置错误日志,它将默认为默认错误/访问日志。有没有办法为一个虚拟主机关闭它?
我每次都试图在不重新启动 Fail2Ban 的情况下解除对 IP 地址的阻止,这样做的最佳方法是什么?或者你能指出我有用指南的方向吗?
正如您在下面看到的,我尝试删除的 IP 地址是:89.31.259.161
# iptables -L -n
Chain INPUT (policy DROP)
target prot opt source destination
fail2ban-apache-badbots tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443
fail2ban-httpd tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
fail2ban-sasl tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 25,465,143,220,993,110,995
fail2ban-SSH tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:22
fail2ban-httpd tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:443
fail2ban-httpd tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80
fail2ban-vsftpd tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:21
ACCEPT all -- 0.0.0.0/0 0.0.0.0/0 state RELATED,ESTABLISHED
ACCEPT …Run Code Online (Sandbox Code Playgroud) 我从 rkhunter 收到以下错误。我最近将我的服务器从 lenny 升级到了挤压,这可能导致了问题。如何解决此问题或隐藏错误消息?
Warning: The modules file '/proc/modules' is missing.
Warning: Suspicious file types found in /dev:
/dev/shm/network/ifstate: ASCII text
Warning: Hidden directory found: /dev/.udev
Run Code Online (Sandbox Code Playgroud)
我也没有收到第二封电子邮件:Please inspect this machine, because it may be infected.请问有人能指出我正确的方向来找出这些错误的原因吗?
我注意到许多重复的文件,例如默认的 Apache vHost,我都有: - default - default.dpkg-dist
Apache 还会读取 .dpkg-dist 文件扩展名吗?
我正在尝试为我的服务器配置 fail2ban 并且遇到了:apache-overflows在 .config 中
它做什么/防止什么?
我有一个在 debian 上运行 apache2 的虚拟服务器。我想在 apache2.conf 中为我的所有网站创建一个默认的 404 错误消息。
ErrorDocument 404 "/var/www/site/public/404.html"
重新启动apache后我得到的错误是: Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
虽然我不希望页面重定向只使用默认的 404.html 页面,但如果我输入 URL,它会起作用。
默认情况下,如何为每个虚拟主机关闭 Apache 搜索 .htaccess 文件?
尽管仍在读取 htaccess 文件,但我已尝试更改默认虚拟主机。我需要在 apache 设置中更改其他任何地方吗?
我还需要在 default-ssl 中更改它吗?
<VirtualHost *:80>
ServerAdmin root@example.com
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/var/www/">
Options -Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
Run Code Online (Sandbox Code Playgroud)
更新:httpd.conf:空,下面的 apache2.conf:
#
# Based upon the NCSA server configuration files originally by Rob McCool.
#
# This is the main Apache server configuration file. It contains the
# configuration directives that give the server its instructions.
# See …Run Code Online (Sandbox Code Playgroud) 商店 Web 应用程序生成的每封电子邮件都返回: 交付状态通知,无效标头:错误的 MIME
从查看错误消息来看,它似乎是在抱怨电子邮件中的 HTML,尽管在查看源代码时看起来并没有问题。
Your message WAS SUCCESSFULLY RELAYED to:
<tim@example.com>
This delivery report was generated by the program amavisd-new at host
example.com. Our internal reference code for your message is
20971-09/NNjaWqvFY5Qg
INVALID HEADER: BAD MIME HEADER SECTION OR BAD MIME STRUCTURE
MIME error: error: couldn't parse head; error near:; Return ID: 1; Return
Date: 11/09/2011
Return-Path: <tim@example.com>
From: =?UTF-8?B?WW91ciBTdG9yZQ==?=<tim@example.com>
Message-ID: <20110911175440.A84BE5E099@example.com>
X-Mailer: PHP/5.3.4
Subject: =?UTF-8?B?WW91ciBTdG9yZSAtIFJldHVybiBVcGRhdGUgMQ==?=
dsn_status
Reporting-MTA: dns; example.com
Received-From-MTA: smtp; example.com ([127.0.0.1])
Arrival-Date: Sun, 11 …Run Code Online (Sandbox Code Playgroud) 我已经尝试阅读手册,但说实话,我仍然发现很难理解和理解 Order/Allow 的实际作用以及 Web 服务器的默认设置应该是什么。
我有以下默认配置,我关闭了 .htaccess 和符号链接。
虽然我不太确定Order Allow,Deny和Allow from all实际做了什么?我应该将其从 127.0.0.1 更改为 Allow 吗?
<Directory />
Options -Indexes -FollowSymLinks MultiViews
AllowOverride None
Order Allow,Deny
Allow from all
</Directory>
Run Code Online (Sandbox Code Playgroud)
另外,我是否需要以下内容,<Files>或者是否有更好的方式为 apache 编写此内容?
<Directory /var/www/example/subdomains/dev/public/webapp>
RewriteEngine Off
<Files *>
order allow,deny
deny from all
</Files>
<FilesMatch "\.(png|gif|jpe?g|png|css|js|swf|ps|flv)$">
order allow,deny
allow from all
</FilesMatch>
</Directory>
Run Code Online (Sandbox Code Playgroud) apache-2.2 ×5
linux ×4
debian ×3
fail2ban ×2
virtualhost ×2
apt ×1
email ×1
iptables ×1
mime ×1
rkhunter ×1
unix ×1
web-server ×1