CentOS7 : /caucho-status setup with .htpasswd in VirtualHost, using pure php Hint

configurate apache-caucho

 

/etc/httpd/conf/httpd.conf

LoadModule caucho_module modules/mod_caucho.so

<Location /caucho-status>

AuthType Basic

AuthName "restricted area"

AuthUserFile /home/domain/.htpasswd

require valid-user

  SetHandler caucho-status

</Location>

<Location /servlet/*>

   SetHandler caucho-request

</Location>

NameVirtualHost *:80

<VirtualHost *:80>

ServerName www.domain.com

DocumentRoot /home/domain/public_html

php_admin_value open_basedir /home/domain:/tmp

php_admin_value include_path /home/domain

LimitRequestLine 81900

<FilesMatch "^((?!\.php).)*$">

ResinConfigServer localhost 6800

CauchoConfigCacheDirectory /etc/httpd

CauchoStatus yes

 

</FilesMatch>

 

</VirtualHost>

 

Create .htpasswd

htpasswd -c /home/domain/.htpasswd userid

 

http://www.domain.com/caucho-status