[CentOS] Centos 7 httpd Permission problems with Postfixadmin

Fri Feb 17 22:03:08 UTC 2017
Pete Biggs <pete at biggs.org.uk>

> 
> 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.