65 lines
1.6 KiB
Plaintext
65 lines
1.6 KiB
Plaintext
Define SRVROOT "{{SRVROOT}}"
|
|
|
|
Listen {{LISTEN_ADDRESS}}:{{PORT}}
|
|
|
|
LoadModule authz_core_module modules/mod_authz_core.so
|
|
LoadModule authz_host_module modules/mod_authz_host.so
|
|
LoadModule dir_module modules/mod_dir.so
|
|
LoadModule mime_module modules/mod_mime.so
|
|
LoadModule alias_module modules/mod_alias.so
|
|
LoadModule log_config_module modules/mod_log_config.so
|
|
LoadModule rewrite_module modules/mod_rewrite.so
|
|
LoadModule proxy_module modules/mod_proxy.so
|
|
LoadModule proxy_fcgi_module modules/mod_proxy_fcgi.so
|
|
|
|
# Required for PHP-FPM on Windows to avoid "No input file specified"
|
|
<IfModule proxy_fcgi_module>
|
|
ProxyFCGIBackendType GENERIC
|
|
</IfModule>
|
|
|
|
ServerAdmin admin@localhost
|
|
ServerName localhost:{{PORT}}
|
|
|
|
DocumentRoot "{{ROOT}}"
|
|
<Directory "{{ROOT}}">
|
|
Options Indexes FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
</Directory>
|
|
|
|
ErrorLog "{{LOG_DIR}}/apache_error.log"
|
|
LogLevel warn
|
|
|
|
<IfModule log_config_module>
|
|
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
|
CustomLog "{{LOG_DIR}}/apache_access.log" common
|
|
</IfModule>
|
|
|
|
<IfModule dir_module>
|
|
DirectoryIndex index.php index.html index.htm
|
|
</IfModule>
|
|
|
|
<Files ".ht*">
|
|
Require all denied
|
|
</Files>
|
|
|
|
# phpMyAdmin configuration
|
|
Alias /phpmyadmin "{{PHPMYADMIN_DIR}}"
|
|
<Directory "{{PHPMYADMIN_DIR}}">
|
|
Options Indexes FollowSymLinks
|
|
AllowOverride All
|
|
Require all granted
|
|
|
|
<FilesMatch \.php$>
|
|
SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}/"
|
|
</FilesMatch>
|
|
</Directory>
|
|
|
|
# Global PHP handler
|
|
<FilesMatch \.php$>
|
|
SetHandler "proxy:fcgi://127.0.0.1:{{PHP_PORT}}/"
|
|
</FilesMatch>
|
|
|
|
# Project configurations
|
|
{{PROJECTS}}
|