Hi @Inderpreet ,
for the task
Install and Configure Web Application , i added the following 2 VirtualHost directives to the default httpd config file at /etc/httpd/conf/httpd.conf and set the permissions and ownerships correctly for the blog and official directories located at /var/www/html respectively .
CustomLog /var/log/httpd/blog/access.log combined
CustomLog /var/log/httpd/official/access.log combined
curl http://localhost:8080/media/ <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>404 Not Found</title> </head><body> <h1>Not Found</h1> <p>The requested URL /media/ was not found on this server.</p> </body></html>
Do i need to add ServerName for the httpd server to differentiate the 2 virtual hosts or do i need to add some entry in the /etc/hosts file .
Can you please let me know what is wrong in my setup . Thanks