File: /volume1/@appstore/WebStation/misc/apache24.mustache
<Directory "/var/services/web">
{{#php_handler}}
<FilesMatch "\.(php[345]?|phtml)$">
SetHandler "proxy:unix:/run/php-fpm/{{.}}.sock|fcgi://127.0.0.1"
</FilesMatch>
{{/php_handler}}
Options MultiViews FollowSymLinks ExecCGI
AllowOverride All
<IfModule authz_core_module>
Require all granted
</IfModule>
<IfModule dir_module>
DirectoryIndex index.html index.htm index.cgi index.php index.php5
</IfModule>
</Directory>
{{#php_handler}}
<Proxy "unix:/run/php-fpm/{{.}}.sock|fcgi://127.0.0.1">
ProxySet timeout=300
</Proxy>
{{/php_handler}}
{{#userdir}}
LoadModule userdir_module modules/mod_userdir.so
{{#userdir_php}}
LoadModule suphp_module modules/mod_suphp.so
{{/userdir_php}}
UserDir www
<Directory "/var/services/homes/">
AllowOverride Options=Indexes AuthConfig FileInfo Indexes Limit
Options MultiViews ExecCGI
<IfModule authz_core_module>
Require all granted
</IfModule>
<IfModule dir_module>
DirectoryIndex index.html index.htm index.cgi index.php index.php5
</IfModule>
{{#userdir_php}}
AddHandler application/x-httpd-suphp .php .php3 .php4 .php5 .phtml
suPHP_Engine on
suPHP_AddHandler application/x-httpd-suphp
SetEnv PHP_INI_SCAN_DIR /usr/syno/etc/packages/WebStation/php_profile/{{userdir_php}}/conf.d:/run/php-fpm/conf.d
{{/userdir_php}}
</Directory>
{{/userdir}}