Oracle Linux 7 System Administration — Question 1

Examine this extract from /etc/httpd/conf/httpd.conf for virtual hosts:
<VirtualHost *:80>
ServerAdmin[email protected]
DocumentRoot /www/docs/site1.example.com

ServerName site1.example.com -
</VirtualHost>
<VirtualHost *:80>
ServerAdmin[email protected]
DocumentRoot /www/docs/site2.example.com

ServerName site2.example.com -
</VirtualHost>
Which three statements are true about the configuration extract?

Answer options

Correct answer: A, C, E

Explanation

Statement A is correct because each site requires a unique resolution for proper access. Statement C is incorrect as DHCP is not involved in virtual host IP assignment; it uses the configured IP addresses. Statement E is also incorrect as virtual hosts typically have separate logs unless configured otherwise.