Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam EX300 topic 2 question 12 discussion

Actual exam question from RedHat's EX300
Question #: 12
Topic #: 2
[All EX300 Questions]

Configure the Virtual Host -
Expand your web server on the system1, create a virtual host for site http://www.domain11.example.com
Then Executes the following steps:
1. Setting the DocumentRoot to /var/www/virtual
2. From http://rhgls.domain11.example.com/materials/www.html
3. Download a file, rename as index.html, dont modify file index.html content
4. Put the file index.html under the directory DocumentRoot of Virtual Host
5. Ensure that user andy can create files under directory /var/www/virtual
Note: original site http://systeml.domian11.example.com/ must still be able to be accessed,
Name server domain11.example.com provide the domain name resolution for host name

Show Suggested Answer Hide Answer
Suggested Answer: See Explanation
mkdir p /var/www/ virtual
cd /var/www/ virtua
wget O index.html
http://rhgls.domain11.example.com/materials/www.html
vim /etc/httpd/conf/httpd.conf
<virtualhost *:80>
documentroot /var/www/virtual
www.domain11.example.com
servername
</virtualhost>
setfacl -m u:andy:rwx /var/www/virtual
su andy
touch /var/www/virtual/11.html

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
geekyjm
4 years, 3 months ago
<VirtualHost *:80> ServerName www.example.com DocumentRoot /var/www/virtual </VirtualHost> <Directory "/var/www/virtual"> AllowOverride none Require all granted </Directory>
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...