apache 2.4 on fresh fedora: AH01630: client denied by server configuration -
i've seen hudreds of questions , of them end in changing syntax latest apache version or messing .htaccess. not in case since used fresh f23 install , never played erarlier apache versions. i'm trying set simple virtual host binds 1 of ip's. here put in /etc/httpd/conf.d/internal.conf
listen 10.10.1.177:80 <virtualhost 10.10.1.177:80> documentroot "/home/www" directoryindex index.html servername internal:80 <directory “/home/www“> options indexes followsymlinks options +indexes require granted </directory> loglevel debug errorlogformat "%{cu}t %m" errorlog /var/log/httpd/internal-error.log customlog /var/log/httpd/internal-access.log combined </virtualhost>
when try:
curl http://10.10.1.17
from other host in network, first 403 page appears , redirected default fedora-apache page. entries entries gets error log:
2016-04-21 22:45:50.610696 ah01626: authorization result of require denied: denied 2016-04-21 22:45:50.610724 ah01626: authorization result of <requireany>: denied 2016-04-21 22:45:50.610729 ah01630: client denied server configuration: /home/www/ 2016-04-21 22:45:50.610763 ah01626: authorization result of require granted: granted 2016-04-21 22:45:50.610771 ah01626: authorization result of <requireany>: granted
i want virtual server serve put /home/www. missing?
i changed main httpd.conf file bind other network interface. have "greped" .conf files "deny|denied" statements , found default "require denied" "/" directory , .ht files in main config.
there locationmatch
directive in /etc/httpd/conf.d/welcome.conf
causing behavior:
<locationmatch "^/+$"> options -indexes errordocument 403 /.noindex.html </locationmatch>
comment out comments of file (or empty out file), do not remove file, because subsequent upgrade of httpd
package bring back. not overwritten if have modified locally.
Comments
Post a Comment