File: /volume1/@appstore/WebStation/misc/apache24.mustache
<Directory "/var/services/web">
<FilesMatch "\.(php[345]?|phtml)$">
{{#php_handler}}SetHandler "proxy:unix:/run/php-fpm/{{php_handler}}.sock|fcgi://localhost"{{/php_handler}}
{{^php_handler}}Redirect 500{{/php_handler}}
</FilesMatch>
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>
{{#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}}