Configure Apache Web Server 2.4.6 On Redhat
Configure Apache Web Server 2.4.6 is an Open Source web server that is widely used in today’s world to host the websites and also applications. Apache allows you to host multiple websites on a single IP address using Name Based Hosting. We can configure the apache server in Linux.
There is another option Apache offers you to host one website on a single IP address. It’s not recommended. if You have multiple websites hosted with single IP in your organization then it will increase hardware cost as you will have to use many servers to host multiple websites.
Check Out: Install Apache
Apache runs on port 80 HTTP and 443 HTTPS and content of the website should keep at this location /var/www/html/
yum install httpd* -y
Configure Apache Server
Create a test file to test the Apache works or not after installing.
Check Out: Enable Verbose Logs In Apache
Now edit this file to type some message
“Hello world what are you waiting for just hit it XD”
And Save file wq!
Restart the Apache service Then Go to the browser and type.
yourip/test.html or localhost/test.html
You will see this message which was in the file. If you get any error that means Apache server is not installed properly.
Now you can check Apache Version by command.
That’s it. apache configure in linux server