Troubleshooting methods.
1. Multiple apache configuration files for same domain in /etc/httpd/conf.d . This is because, apache will check for configuration files in /etc/httpd/conf.d
Find the include directive in apache configuration file as:
Includes /etc/httpd/conf.d
2. Namevirtualhost was not configured in apache conf.
3. Apache was listening on port 8080. Apache Listen virtualhost parameter is set as 80
netstat -plant | grep :80
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 5003/httpd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3931/varnishd
#Listen 80
</Virtualhost 80
...
Change the values to 8080
1. Multiple apache configuration files for same domain in /etc/httpd/conf.d . This is because, apache will check for configuration files in /etc/httpd/conf.d
Find the include directive in apache configuration file as:
Includes /etc/httpd/conf.d
2. Namevirtualhost was not configured in apache conf.
3. Apache was listening on port 8080. Apache Listen virtualhost parameter is set as 80
netstat -plant | grep :80
tcp 0 0 127.0.0.1:8080 0.0.0.0:* LISTEN 5003/httpd
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 3931/varnishd
#Listen 80
</Virtualhost 80
...
Change the values to 8080