File: /volume1/@appconf/WebStation/service/service.6001b45a-f027-4e26-882d-de205549e29a.mustache
{{#alias}}
Alias "/{{alias}}" "{{root}}"
{{#fastcgi.sock}}
<Proxy "unix:{{fastcgi.sock}}|fcgi://{{alias}}">
ProxySet timeout={{read_timeout}}
</Proxy>
{{/fastcgi.sock}}
{{#uwsgi}}
<IfModule proxy_uwsgi_module>
<Location "/{{alias}}">
ProxyPass "unix:{{uwsgi.sock}}|uwsgi://{{uwsgi.id}}/"
</Location>
</IfModule>
{{/uwsgi}}
<Directory "{{root}}">
{{#fastcgi}}
<FilesMatch "\.(php[345]?|phtml)$">
<If "%{REQUEST_URI} =~ m#^/{{alias}}#">
{{#managed_by_docker}}
ProxyFCGISetEnvIf "reqenv('SCRIPT_NAME') =~ m|/{{alias}}(.*)|" SCRIPT_FILENAME "{{#chroot}}{{.}}{{/chroot}}$1"
{{/managed_by_docker}}
{{#fastcgi.sock}}
SetHandler "proxy:fcgi://{{alias}}"
{{/fastcgi.sock}}
{{#fastcgi.url}}
SetHandler "proxy:fcgi://{{.}}"
{{/fastcgi.url}}
</If>
</FilesMatch>{{/fastcgi}}
<IfModule dir_module>
DirectoryIndex {{#index}} {{.}}{{/index}}
</IfModule>
</Directory>
{{/alias}}
{{^alias}}
{{#listen}}
NameVirtualHost *:{{.}}{{/listen}}
<VirtualHost{{#http_port}} *:{{.}}{{/http_port}}{{#https_port}} *:{{.}}{{/https_port}}>{{#fqdn}}
ServerName {{fqdn}}
SetEnv HOST {{fqdn}}{{/fqdn}}
DocumentRoot "{{root}}"
LogLevel info
ErrorLogFormat "{{id}};%t;%a;%l;\"%M\""
ErrorLog "/var/packages/WebStation/var/log/apache24_error_log"
Include conf-enabled/.webstation.error_page.default.conf
{{#fastcgi.sock}}
<Proxy "unix:{{fastcgi.sock}}|fcgi://{{id}}">
ProxySet timeout={{read_timeout}}
</Proxy>
{{/fastcgi.sock}}
<Directory "{{root}}">
AllowOverride All
<IfModule authz_core_module>
Require all granted
</IfModule>
<IfModule dir_module>
DirectoryIndex {{#index}} {{.}}{{/index}}
</IfModule>
{{#fastcgi}}
<FilesMatch "\.(php[345]?|phtml)$">
{{#managed_by_docker}}
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "{{#chroot}}{{.}}{{/chroot}}%{reqenv:SCRIPT_NAME}"
{{/managed_by_docker}}
{{#fastcgi.sock}}
SetHandler "proxy:fcgi://{{id}}"
{{/fastcgi.sock}}
{{#fastcgi.url}}
SetHandler "proxy:fcgi://{{.}}"
{{/fastcgi.url}}
</FilesMatch>{{/fastcgi}}
</Directory>
{{#uwsgi}}
<IfModule proxy_uwsgi_module>
ProxyPass / "unix:{{uwsgi.sock}}|uwsgi://{{uwsgi.id}}/"
</IfModule>
{{/uwsgi}}
</VirtualHost>
{{#mdns}}
<VirtualHost{{#http_port}} *:{{.}}{{/http_port}}{{#https_port}} *:{{.}}{{/https_port}}>{{#fqdn}}
ServerName {{fqdn}}.local
SetEnv HOST {{fqdn}}.local{{/fqdn}}
DocumentRoot "{{root}}"
LogLevel info
ErrorLogFormat "{{id}};%t;%a;%l;\"%M\""
ErrorLog "/var/packages/WebStation/var/log/apache24_error_log"
Include conf-enabled/.webstation.error_page.default.conf
{{#fastcgi.sock}}
<Proxy "unix:{{fastcgi.sock}}|fcgi://{{id}}">
ProxySet timeout={{read_timeout}}
</Proxy>
{{/fastcgi.sock}}
<Directory "{{root}}">
AllowOverride All
<IfModule authz_core_module>
Require all granted
</IfModule>
<IfModule dir_module>
DirectoryIndex {{#index}} {{.}}{{/index}}
</IfModule>
{{#fastcgi}}
<FilesMatch "\.(php[345]?|phtml)$">
{{#managed_by_docker}}
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "{{#chroot}}{{.}}{{/chroot}}%{reqenv:SCRIPT_NAME}"
{{/managed_by_docker}}
{{#fastcgi.sock}}
SetHandler "proxy:fcgi://{{id}}"
{{/fastcgi.sock}}
{{#fastcgi.url}}
SetHandler "proxy:fcgi://{{.}}"
{{/fastcgi.url}}
</FilesMatch>{{/fastcgi}}
</Directory>
{{#uwsgi}}
<IfModule proxy_uwsgi_module>
ProxyPass / "unix:{{uwsgi.sock}}|uwsgi://{{uwsgi.id}}/"
</IfModule>
{{/uwsgi}}
</VirtualHost>
{{/mdns}}
{{/alias}}