Re: Centos 7 httpd Permission problems with Postfixadmin

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



> 
> Not there still.  In /var/www/html  I created .htaccess:
> 
> # ls -lstra
> total 12
> 4 drwxr-xr-x. 4 root root   4096 Feb  6 16:06 ..
> 4 drwxr-xr-x. 2 root root   4096 Feb 17 13:32 .
> 4 -rw-r--r--. 1 root apache   21 Feb 17 13:32 .htaccess
> 
> # cat .htaccess
>          Require all granted
> 
> 
> restarted httpd, and still get the error.
> 
> [Fri Feb 17 13:36:17.366525 2017] [authz_core:error] [pid 5844] [client 
> 192.168.160.12:48370] AH01630: client denied by server configuration: 
> /usr/share/postfixadmin
> 
That's not how the .htaccess file works. It needs to be in the
directory specified in the postfixadmin.conf file - i.e. the
configuration 

<Directory "/usr/share/postfixadmin">
         AllowOverride AuthConfig
</Directory>

means to look in the .htaccess file in /usr/share/postfixadmin when
accessing any file in that directory (and below) for authorisation
information.

Putting it in /var/www/html will have no effect.

P.
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux