Hi,
I try to find a way to make virtualhosts work on folder /home/user with HTTP2 enabled on apache.
Previously, I used to do it with mpm-itk enabled and LoadModule mpm_prefork_module.
The problem is that mpm-itk is not compatible with HTTP2 and LoadModule mpm_event_module
So i discovered suPHP which should do the job of mpm-itk but ot does not seem to work.
Did anyone succeed to install and configure suPHP on Rocky Linux 8 ?
Have you another alternative to get virtualhosts in /home directory which works with http2 enabled?
Find below what I did to install suPHP.
Thanks for your help.
–
# dnf install -y http://repo.okay.com.mx/centos/8/x86_64/release/mod_suphp-0.7.2-2.el8.x86_64.rpm
In the Apache Configuration file of a domain, I added the code below:
<FilesMatch ".+\.ph(p[345]?|t|tml)$">
SetHandler None
</FilesMatch>
<IfModule mod_suphp.c>
suPHP_Engine on
<FilesMatch "\.php[345]?$">
SetHandler x-httpd-suphp
</FilesMatch>
suPHP_AddHandler x-httpd-suphp
</IfModule>
Ahd then, I restarted Apache :
# systemctl restart httpd
When I call the domain name, I have a ownership error because the domain name is in /home/user/mydomain.com and to work, the user should be apache.