I have CentOS 8 I installed LAMP, Varnish, etc.
I setup hosts
/etc/hosts
ip site1.com www.site1.com ip site2.com www.site2.com
I setup Apache like this:
/etc/httpd.conf to include sites-enabled/
I have sites-enabled and sites-available with two configurations, site1.com.conf and site2.com.conf
Here what I included in etc/httpd/conf/httpd.conf
Include conf.modules.d/*.conf
and
IncludeOptional sites-enabled/*.conf
Still it is not working. Any idea how to fix this?
What i put in site1.com.conf example:
<VirtualHost *:8080>
ServerName site1.com
ServerAlias www.site1.com
DocumentRoot /var/www/site1.com/html
ErrorLog /var/www/site1.com/html/log/error.log
CustomLog /var/www/site1.com/html/log/requests.log combined
</VirtualHost>
I manage to get this to work now but the https versions are not working Can you help guide me how to fix the https versions ? Thanks
Edit:. I fixed. Problem was IncludeOptional conf.d/*.conf was not in httpd.conf
Place the following in your
httpd.conf
then restart the service.Reference