diff options
author | John Ankarström <john@ankarstrom.se> | 2021-07-15 21:35:27 +0200 |
---|---|---|
committer | John Ankarström <john@ankarstrom.se> | 2021-07-15 21:35:27 +0200 |
commit | b7256a8a82039560ac31677ad751c97dd5bbe783 (patch) | |
tree | 1662455140333ff52b467be9d1df0e96d6bdb64a | |
parent | 649d1c914e800db2b1ffc587102ea9276790e388 (diff) | |
download | rbsd-b7256a8a82039560ac31677ad751c97dd5bbe783.tar.gz |
httpd.conf: Configure PHP 7.4
-rw-r--r-- | usr/pkg/etc/httpd/httpd.conf | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/usr/pkg/etc/httpd/httpd.conf b/usr/pkg/etc/httpd/httpd.conf index 135fea7..fc43460 100644 --- a/usr/pkg/etc/httpd/httpd.conf +++ b/usr/pkg/etc/httpd/httpd.conf @@ -1,8 +1,8 @@ ServerRoot "/usr/pkg" Listen 0.0.0.0:80 -LoadModule mpm_event_module lib/httpd/mod_mpm_event.so -#LoadModule mpm_prefork_module lib/httpd/mod_mpm_prefork.so +#LoadModule mpm_event_module lib/httpd/mod_mpm_event.so +LoadModule mpm_prefork_module lib/httpd/mod_mpm_prefork.so #LoadModule mpm_worker_module lib/httpd/mod_mpm_worker.so LoadModule authn_file_module lib/httpd/mod_authn_file.so #LoadModule authn_dbm_module lib/httpd/mod_authn_dbm.so @@ -110,6 +110,7 @@ LoadModule userdir_module lib/httpd/mod_userdir.so LoadModule alias_module lib/httpd/mod_alias.so LoadModule rewrite_module lib/httpd/mod_rewrite.so LoadModule perl_module lib/httpd/mod_perl.so +LoadModule php7_module lib/httpd/mod_php7.so <IfModule unixd_module> User www @@ -185,6 +186,10 @@ LogLevel warn #AddOutputFilter INCLUDES .shtml </IfModule> +<FilesMatch \.php$> + SetHandler application/x-httpd-php +</FilesMatch> + #MIMEMagicFile etc/httpd/magic # Server-pool management (MPM specific) |