Ensure that any user-specific configs are included!
If none of the other answers on this page for you work, here’s what I ran into after hours of floundering around.
I used user-specific configurations, with Sites
specified as my UserDir
in /private/etc/apache2/extra/httpd-userdir.conf
. However, I was forbidden access to the endpoint http://localhost/~jwork/
.
I could see in /var/log/apache2/error_log
that access to /Users/jwork/Sites/
was being blocked. However, I was permitted to access the DocumentRoot, via http://localhost/
. This suggested that I didn’t have rights to view the ~jwork
user. But as far as I could tell by ps aux | egrep '(apache|httpd)'
and lsof -i :80
, Apache was running for the jwork
user, so something was clearly not write with my user configuration.
Given a user named jwork
, here was my config file:
/private/etc/apache2/users/jwork.conf
<Directory "/Users/jwork/Sites/">
Require all granted
</Directory>
This config is perfectly valid. However, I found that my user config wasn’t being included:
/private/etc/apache2/extra/httpd-userdir.conf
## Note how it's commented out by default.
## Just remove the comment to enable your user conf.
#Include /private/etc/apache2/users/*.conf
Note that this is the default path to the userdir conf file, but as you’ll see below, it’s configurable in httpd.conf
. Ensure that the following lines are enabled:
/private/etc/apache2/httpd.conf
Include /private/etc/apache2/extra/httpd-userdir.conf
# ...
LoadModule userdir_module libexec/apache2/mod_userdir.so
If you mean the file .owncloudsync.log
on the client machine I noticed something weird. The last entries are this:
#=#=#=# Syncrun started 2018-11-14T18:00:58
#=#=#=#=# Propagation starts 2018-11-14T18:00:58 (last step: 889 msec, total: 889 msec)
#=#=#=# Syncrun finished 2018-11-14T18:00:59 (last step: 29 msec, total: 919 msec)
I’ve confirmed in /var/log/apt/history.log
that a few minutes later I upgraded the client to 2.5.0git on this machine. Since then no log entries any more. But syncing seems fine.
On the server side, this is my config:
<?php
$CONFIG = array (
'instanceid' => 'XXX',
'passwordsalt' => 'XXX',
'secret' => 'XXX',
'trusted_domains' =>
array (
0 => 'XXX',
),
'datadirectory' => 'XXX',
'overwrite.cli.url' => 'XXX',
'version' => '14.0.4.2',
'dbtype' => 'mysql',
'dbname' => 'XXX',
'dbhost' => 'XXX',
'dbtableprefix' => 'oc_',
'dbuser' => 'XXX',
'dbpassword' => 'XXX',
'logtimezone' => 'Europe/Berlin',
'default_language' => 'de',
'htaccess.RewriteBase' => '/',
'share_folder' => '/XXX',
'cron.lockfile.location' => 'XXX',
'tempdirectory' => 'XXX',
'installed' => true,
'mail_domain' => 'XXX',
'trashbin_retention_obligation' => '30,60',
'versions_retention_obligation' => '15,30',
'log_rotate_size' => 104857600,
'activity_expire_days' => 90,
'mail_from_address' => 'XXX',
'mail_smtpmode' => 'smtp',
'enabledPreviewProviders' =>
array (
0 => 'OC\Preview\PNG',
1 => 'OC\Preview\JPEG',
2 => 'OC\Preview\GIF',
3 => 'OC\Preview\BMP',
4 => 'OC\Preview\XBitmap',
5 => 'OC\Preview\TXT',
6 => 'OC\Preview\MarkDown',
),
'loglevel' => 2,
'maintenance' => false,
'memcache.local' => '\OC\Memcache\Redis',
'memcache.locking' => '\OC\Memcache\Redis',
'redis' =>
array (
'host' => 'localhost',
'port' => 6379,
),
'token_auth_enforced' => true,
'auth.bruteforce.protection.enabled' => true,
'updater.release.channel' => 'stable',
'theme' => '',
'mail_smtpsecure' => 'tls',
'mail_smtpauthtype' => 'LOGIN',
'mail_smtpauth' => 1,
'mail_smtphost' => 'XXX',
'mail_smtpport' => '587',
'mail_smtpname' => 'XXX',
'mail_smtppassword' => 'XXX',
'sentry.dsn' => 'XXX',
'sentry.public-dsn' => 'XXX',
);
No errors there and nothing special in the logs either, but this from Apache:
[Sat Nov 24 07:08:38.511169 2018] [authz_core:error] [pid 17589:tid 140163210172160] [client 2a02:810d:abbf:XXX] AH01630: client denied by server configuration: XXX/config
[Sat Nov 24 07:16:38.526937 2018] [authz_core:error] [pid 17589:tid 140163210172160] [client 2a02:810d:abbf:XXX] AH01630: client denied by server configuration: XXX/config
[Sat Nov 24 07:24:38.545834 2018] [authz_core:error] [pid 17589:tid 140163193386752] [client 2a02:810d:abbf:XXX] AH01630: client denied by server configuration: XXX/config
[Sat Nov 24 07:32:38.539323 2018] [authz_core:error] [pid 17590:tid 140163184994048] [client 2a02:810d:abbf:XXX] AH01630: client denied by server configuration: XXX/config
[Sat Nov 24 07:48:38.519454 2018] [authz_core:error] [pid 17590:tid 140163201779456] [client 2a02:810d:abbf:XXX] AH01630: client denied by server configuration: XXX/config
[Sat Nov 24 07:56:38.515436 2018] [authz_core:error] [pid 17589:tid 140163201779456] [client 2a02:810d:abbf:XXX] AH01630: client denied by server configuration: XXX/config
(So it’s every 8 Minutes and not 15.)
Since this is over IPv6 the client ip in question is exactly the ip of this ubuntu machine with the 2.5-client.
-
+1 888 500 1070 (Toll Free)
-
+1 888 500 1070 (Toll Free)
- Product
Unique Public & Private Cloud Management Portal for Data centers, Enterprise & Webhosting Companies.
Easy-to-use self-service portal allows your customers the freedom to manage their cloud with minimal handholding.
Self-service portal allows businesses to manage their resources, monitoring & vulnerability scan, by themselves.
Centralized governance and secure and holistic management of resources across multiple clouds through RBAC.
- Cloud services & AIOps
PUBLIC CLOUD
Transform Your Enterprise on AWS Cloud Platform with Cost-Effective, AIOps-Driven Managed Offerings.
GCP
Assistanz helps Enterpise, drive innovation, manage costs, governance and risks associated with their workloads on Google Cloud Platform.
CONTAINER ORCHESTRATION
Orchestrate containerized applications across multiple environments with end-to-end support from certified Kubernetes administrators.
Helps organizations increase efficiency, reduce cost and speed up time to market through pipeline automation across different cloud platforms.
PRIVATE CLOUD
Assistanz are the largest supporter of CloudStack since 2015, specializing in design & implementation of laaS for private & public clouds.
- Support Services
Our IMS Plans cover IT infrastructure planning, design, implementation, maintenance and evloution
If you are looking for staffs who could augment your webhosting business, then Assistanz is just the partner you’re looking for.
Offload your cPanel Server management & support overheads and focus only on your business.
A fully comprehensive plan to manage your Linux & Windows Plesk Servers.
Our DirectAdmin server management plan provides you with unlimited hours of server.
Enable easy migration of applications to cloud with our robust cloud server migration services.
Connect with US
Looking for more cutomized support solutions ?
Our team is ready to help you
Explore our free Configuration package, Scripts, Automations & More..
Quality Management System
- Company
Established in 2004, Assistanz has become one of the most preferred IT Service providers across diverse industry segments and a complete one-stop shop for all your IT Needs & Solutions.
Questions about our service?
Our team can answer them for your within a day..If you care for a career…
- Blog
- Product
Unique Public & Private Cloud Management Portal for Data centers, Enterprise & Webhosting Companies.
Easy-to-use self-service portal allows your customers the freedom to manage their cloud with minimal handholding.
Self-service portal allows businesses to manage their resources, monitoring & vulnerability scan, by themselves.
Centralized governance and secure and holistic management of resources across multiple clouds through RBAC.
- Cloud services & AIOps
PUBLIC CLOUD
Transform Your Enterprise on AWS Cloud Platform with Cost-Effective, AIOps-Driven Managed Offerings.
GCP
Assistanz helps Enterpise, drive innovation, manage costs, governance and risks associated with their workloads on Google Cloud Platform.
CONTAINER ORCHESTRATION
Orchestrate containerized applications across multiple environments with end-to-end support from certified Kubernetes administrators.
Helps organizations increase efficiency, reduce cost and speed up time to market through pipeline automation across different cloud platforms.
PRIVATE CLOUD
Assistanz are the largest supporter of CloudStack since 2015, specializing in design & implementation of laaS for private & public clouds.
- Support Services
Our IMS Plans cover IT infrastructure planning, design, implementation, maintenance and evloution
If you are looking for staffs who could augment your webhosting business, then Assistanz is just the partner you’re looking for.
Offload your cPanel Server management & support overheads and focus only on your business.
A fully comprehensive plan to manage your Linux & Windows Plesk Servers.
Our DirectAdmin server management plan provides you with unlimited hours of server.
Enable easy migration of applications to cloud with our robust cloud server migration services.
Connect with US
Looking for more cutomized support solutions ?
Our team is ready to help you
Explore our free Configuration package, Scripts, Automations & More..
Quality Management System
- Company
Established in 2004, Assistanz has become one of the most preferred IT Service providers across diverse industry segments and a complete one-stop shop for all your IT Needs & Solutions.
Questions about our service?
Our team can answer them for your within a day..If you care for a career…
- Blog
-
Blog, Web Hosting Support
-
D KarthiKeyan -
March 31, 2017
AH01630: client denied by server configuration:
AH01630: client denied by server configuration in log appears due to access permissions, The Require provides a variety of different ways to allow or deny access to resources.
In conjunction with the RequireAll
, RequireAny
, and RequireNone
directives, these requirements may be combined in arbitrarily complex ways, to enforce whatever your access policy happens to be.
If your apache error log shows like below line then,
[date] [authz_core:error] [pid] [client IP] AH01630: client denied by server configuration: /your/document/root/path
the access permissions ” Require all granted ” is required to resolve this issue. You can add below lines into the VirtualHost,
<Directory /your/document/root/path> AllowOverride none Require all granted </Directory>
After adding the VirtualHost will be like,
<VirtualHost *:80> ... <Directory /your/document/root/path> AllowOverride none Require all granted </Directory> ... </VirtualHost>
D KarthiKeyan
Most Popular:
in Apache on Ubuntu I’ve set up a vhost, but in the browser I keep getting a «403 Access forbidden» error; the log says «Client denied by server configuration: /home/remix/«.
Looking for the solution online I found many posts about the directory access (Allow from all, etc), but as far as I know I already did that. In httpd-vhosts.conf there is the following code:
NameVirtualHost *:80
<VirtualHost *:80>
ServerAdmin webmaster@dummy-host.example.com
DocumentRoot "/opt/lampp/htdocs/"
ServerName localhost
ServerAlias localhost
ErrorLog "logs/dummy-host.example.com-error_log"
CustomLog "logs/dummy-host.example.com-access_log" common
</VirtualHost>
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot "/home/remix/"
ServerName testproject
ServerAlias testproject
<Directory "/home/remix/">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
I’ve also added
127.0.0.1 testproject
to the /etc/hosts file.
Also, the /home/remix/ folder contains an index.html file and vhosts are enabled in httpd.conf.
Is there anything I’m not seeing?
Edit: This is the Apache error_log entry:
[Sat Aug 18 09:15:32.666938 2012] [authz_core:error] [pid 6587]
[client 127.0.0.1:38873] AH01630: client denied by server configuration: /home/remix/
Раздел: Linux
Написано: 22.08.2019
Автор: Antonio
Каждый раз когда разворачиваю новый сервер получается что-то да обновилось, в этот раз Apache 2.4 вытеснил бывший по-умолчанию Apache версии 2.2.
В версии 2.4 немного изменился файл конфигурации, поэтому так просто скопировав «старые конфиги» и файлы виртуальных хостов этим дело не ограничится.
В Apache 2.4 получаем ошибку AH01630: client denied by server configuration
Решение как обычно простое, но в спешке можно долго его искать, поэтому записываем
Удаляем все «Order deny, allow» и «Order allow, deny» и
меняем «Deny from all» на «Require all denied»
меняем «Allow from all» на «Require all granted»
Пример работающего файла виртуального хоста Apache 2.4:
<VirtualHost *:81> ServerName nemcd.com ServerAlias www.nemcd.com ServerAdmin [email protected] DocumentRoot /site/nemcd.com/www <Directory /site/nemcd.com/www> Options -Indexes Require all granted Options FollowSymLinks AllowOverride All </Directory> ErrorLog ${APACHE_LOG_DIR}/nemcd.com-error.log # CustomLog ${APACHE_LOG_DIR}/nemcd.com-access.log combined </VirtualHost>
В данном случае установлено AllowOverride All, поэтому нужно активировать модуль mod_rewrite, так как очень часто нужно использовать файлы .htaccess, если они не нужны, можно написать AllowOverride None:
Чтобы работали .htaccess выполняем команду
a2enmod rewrite
Перезапускаем апач после внесенных изменений или делаем стоп, старт.
service apache2 reload
Фразы: не стартует Apache 2.4, изменения в .conf файле, ошибка AH01630