我对我的一台服务器进行了更新,现在在此处托管的网站上收到 Forbidden 403 错误。该网站收到错误 403。禁止 您无权访问此资源。 Apache/2.4.10 (Debian) 服务器
我正在服务器上运行 ISPConfig,但无法访问 Web 界面,并且在尝试将其全部备份并运行时遇到重大问题。
我尝试将目录更改为 www-data:www-data、root:root、www-data:root、root:www-data 以及用户/组的 ISPConfig 默认值,但它们仍然出现为 no去。
100-example.com.vhost
<Directory /var/www/example.com>
AllowOverride None
#Order Deny,Allow
#Allow from all
Require all granted
</Directory>
<VirtualHost *:80>
DocumentRoot /var/www/example.com/web
ServerName example.com
ServerAlias www.example.com
ServerAdmin [email protected]
ErrorLog /var/log/ispconfig/httpd/example.com/error.log
<IfModule mod_ssl.c>
</IfModule>
<Directory /var/www/example.com/web>
# Clear PHP settings of this website
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler None
</FilesMatch>
Options +FollowSymLinks
AllowOverride All
Require all granted
#Order allow,deny
#Allow from all
</Directory>
<Directory /var/www/clients/client1/web1/web>
# Clear PHP settings of this website
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler None
</FilesMatch>
Options +FollowSymLinks
AllowOverride All
Require all granted
#Order allow,deny
#Allow from all
</Directory>
<IfModule mod_suexec.c>
SuexecUserGroup web1 client1
</IfModule>
<IfModule mod_fcgid.c>
IdleTimeout 300
ProcessLifeTime 3600
# MaxProcessCount 1000
DefaultMinClassProcessCount 0
DefaultMaxClassProcessCount 100
IPCConnectTimeout 3
IPCCommTimeout 600
BusyTimeout 3600
</IfModule>
<Directory /var/www/example.com/web>
<FilesMatch "\.php[345]?$">
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php
FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php3
FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php4
FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php5
Options +ExecCGI
AllowOverride All
Require all granted
#Order allow,deny
#Allow from all
</Directory>
<Directory /var/www/clients/client1/web1/web>
<FilesMatch "\.php[345]?$">
SetHandler fcgid-script
</FilesMatch>
FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php
FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php3
FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php4
FCGIWrapper /var/www/php-fcgi-scripts/web1/.php-fcgi-starter .php5
Options +ExecCGI
AllowOverride All
Require all granted
#Order allow,deny
#Allow from all
</Directory>
<IfModule mpm_itk_module>
AssignUserId web1 client1
</IfModule>
<IfModule mod_dav_fs.c>
<Directory /var/www/clients/client1/web1/webdav>
<ifModule mod_security2.c>
SecRuleRemoveById 960015
SecRuleRemoveById 960032
</ifModule>
<FilesMatch "\.ph(p3?|tml)$">
SetHandler None
</FilesMatch>
</Directory>
DavLockDB /var/www/clients/client1/web1/tmp/DavLock
</IfModule>
</VirtualHost>
./apache2/error.log:
[Wed Mar 25 08:51:02.410279 2020] [suexec:notice] [pid 30946] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Mar 25 08:51:05.591034 2020] [:error] [pid 30969] python_init: Python version mismatch, expected '2.7.5+', found '2.7.9'.
[Wed Mar 25 08:51:05.597065 2020] [:error] [pid 30969] python_init: Python executable found '/usr/bin/python'.
[Wed Mar 25 08:51:05.597095 2020] [:error] [pid 30969] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
[Wed Mar 25 08:51:05.597166 2020] [:notice] [pid 30969] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed Mar 25 08:51:05.597178 2020] [:notice] [pid 30969] mod_python: using mutex_directory /tmp
[Wed Mar 25 08:51:05.838406 2020] [access_compat:error] [pid 31119] [client ::1:36567] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 08:51:06.318757 2020] [mpm_prefork:notice] [pid 30969] AH00163: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 mod_python/3.3.1 Python/2.7.9 OpenSSL/1.0.1t configured -- resuming normal operations
[Wed Mar 25 08:51:06.349892 2020] [core:notice] [pid 30969] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 25 08:52:06.072736 2020] [access_compat:error] [pid 31119] [client ::1:36578] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 08:53:06.625447 2020] [access_compat:error] [pid 31126] [client ::1:36585] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 08:54:09.097197 2020] [access_compat:error] [pid 31133] [client ::1:36592] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 08:55:11.511872 2020] [access_compat:error] [pid 31137] [client ::1:36599] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 08:55:14.504815 2020] [access_compat:error] [pid 31139] [client ::1:36608] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 08:55:27.612502 2020] [mpm_prefork:notice] [pid 30969] AH00169: caught SIGTERM, shutting down
[Wed Mar 25 08:56:35.667755 2020] [suexec:notice] [pid 324] AH01232: suEXEC mechanism enabled (wrapper: /usr/lib/apache2/suexec)
[Wed Mar 25 08:56:36.725382 2020] [:error] [pid 326] python_init: Python version mismatch, expected '2.7.5+', found '2.7.9'.
[Wed Mar 25 08:56:36.733697 2020] [:error] [pid 326] python_init: Python executable found '/usr/bin/python'.
[Wed Mar 25 08:56:36.733732 2020] [:error] [pid 326] python_init: Python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-x86_64-linux-gnu:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'.
[Wed Mar 25 08:56:36.733809 2020] [:notice] [pid 326] mod_python: Creating 8 session mutexes based on 150 max processes and 0 max threads.
[Wed Mar 25 08:56:36.733821 2020] [:notice] [pid 326] mod_python: using mutex_directory /tmp
[Wed Mar 25 08:56:37.149965 2020] [mpm_prefork:notice] [pid 326] AH00163: Apache/2.4.10 (Debian) mod_fcgid/2.3.9 mod_python/3.3.1 Python/2.7.9 OpenSSL/1.0.1t configured -- resuming normal operations
[Wed Mar 25 08:56:37.150067 2020] [core:notice] [pid 326] AH00094: Command line: '/usr/sbin/apache2'
[Wed Mar 25 08:59:04.031419 2020] [access_compat:error] [pid 334] [client ::1:36634] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 09:00:05.905401 2020] [access_compat:error] [pid 335] [client ::1:36642] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 09:00:07.420178 2020] [access_compat:error] [pid 336] [client ::1:36650] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 09:02:04.059978 2020] [access_compat:error] [pid 337] [client ::1:36665] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 09:03:03.870050 2020] [access_compat:error] [pid 338] [client ::1:36673] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 09:04:05.113235 2020] [access_compat:error] [pid 335] [client ::1:36681] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 09:05:05.098343 2020] [access_compat:error] [pid 336] [client ::1:36694] AH01797: client denied by server configuration: /var/www/html/
[Wed Mar 25 09:05:06.604033 2020] [access_compat:error] [pid 334] [client ::1:36702] AH01797: client denied by server configuration: /var/www/html/