Configuring
-
2. Configuring
Now to Configure Apache VirtualHost on RHEL
Make the Config File with nano Editor:sudo nano /etc/httpd/conf.d/localhost.conf
Paste in:
<VirtualHost *:80>
ServerName localhost
DocumentRoot /var/www/html/
<Directory /var/www/html/>
AllowOverride All
Require all granted
</Directory>
ErrorLog /var/log/httpd/localhost-error.log
CustomLog /var/log/httpd/localhost-access.log combined
</VirtualHost>
And then Restart Apache:sudo systemctl reload httpd
Done! :)
-
3. Installing LAMP
How to Install LAMP Web Server on RHEL GNU/Linux
Contents