Red_Hat
RH302 · Question #110
Download a index.html file from ftp.server1.example.com and set as default page for you station?example.com where ? is your host number. Note file is anonymously available.
Answers: 1. ftp ftp://server1.example.com 2. Login as an anonymous and download the file. 3. Copy the file in /var/www/html if you downloaded in another location. 4. service httpd restart 5. Test using links: links http://station7.example.com Check the SELinux context of index.ht
Service management
Question
Download a index.html file from ftp.server1.example.com and set as default page for you station?example.com where ? is your host number. Note file is anonymously available.
Explanation
Answers:
- ftp ftp://server1.example.com
- Login as an anonymous and download the file.
- Copy the file in /var/www/html if you downloaded in another location.
- service httpd restart
- Test using links: links http://station7.example.com Check the SELinux context of index.html file, should like this: -rw-r--r-- root root system_u:object_r:httpd_sys_content_t /var/www/html/index.html If SELinux Context is mismatched, use the restorecon -R /var command
Topics
#Apache#FTP download#virtual host#default page
Community Discussion
No community discussion yet for this question.