Files
VPS-scripts_Web-V2/CMS/Backend/apache-siteBackend-unconfigured

36 lines
870 B
Plaintext

#beginConf
ErrorLog ${APACHE_LOG_DIR}/Backend_error.log
#CustomLog ${APACHE_LOG_DIR}/Backend_custom.log combined
DirectoryIndex index.php index.html index.htm
DocumentRoot /var/www/html
Alias /backend/database /usr/share/phpmyadmin
<Directory /usr/share/phpmyadmin>
#enables/disables PHPMyadmin
deny from all
Require all granted
Options FollowSymLinks
DirectoryIndex index.php
<FilesMatch \.php$>
SetHandler "proxy:unix:/var/run/php/phpPHPver-fpm-Backend.sock|fcgi://localhost"
</FilesMatch>
</Directory>
<Location /backend/monit>
RewriteEngine on
RewriteRule /monit /monit/$1 [R]
</Location>
<Location /backend/monit/>
#enables/disables monit-websocket
deny from all
ProxyPass unix:/var/run/monit/monit.sock|http://127.0.0.1/
ProxyPassReverse unix:/var/run/monit/monit.sock|http://127.0.0.1/
</Location>
#endConf