HEX
Server: Apache/2.4.63 (Unix)
System: Linux TOMS-220NAS 4.4.302+ #86009 SMP Wed Nov 26 18:19:17 CST 2025 x86_64
User: flavio87 (1026)
PHP: 8.3.27
Disabled: NONE
Upload Files
File: /volume1/@appconf/WebStation/service/service.f67fbee7-0c2e-4859-807b-bc47b72853ce.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}}