Fichas
Chapter 6.7 Configure HTTP server
Fichas del conjunto (24)
- 1Install Apache serversudo snf install httpd
- 2Allow firewall for http/https connectionssudo firewall-cmd --add-service=http (or https)
- 3Make changes to firewall permanentsudo firewall-cmd --runtime-to-permanent
- 4Install necessary package for HTTPSsudo dnf install mod_ssl
- 5Start and enable HTTP serversudo systemctl start httpd
sudo systemcl enable httpd - 6View manual of HTTP config fileman httpd.conf
- 7Where are configuration files for HTTP service is located/etc/httpd/
- 8Where can you find httpd.conf?/etc/httpd/conf
- 9Change default port from 80 to 8080 on which HTTP server listens in config filesudo vi /etc/httpd/conf/httpd.conf
Listen 8080 - 10Add specific address 10.11.12.13: 8080 on which HTTP server listens in config fileListen 10.11.12.13: 8080
- 11Change contact of admin to webserver@example.comServerAdmin webserver@example.com
- 12Where HTTP server files which HTTP daemon serves to public are stored?DocumentRoot "/var/www/html"
- 13What changes should be made if HTTP server hosts 2 or more websites? (1st step)Create new file
sudo vim /etc/httpd/conf.d/ - 14What changes should be made if HTTP server hosts 2 or more websites? (2nd step)Add the following line
ServerName store.example.com (1st website)
DocumentRoot /var/www/store/ - 15What changes should be made if HTTP server hosts 2 or more websites? (2nd step)Add the following line
ServerName blog.example.com (1st website)
DocumentRoot /var/www/blog/ - 16What changes should be made if we serve private website for internal employees?
- 17What changes should be made if we serve external server?
- 18Test Apache serverapachectl configtest
- 19Create and edit index.html in html directorysudo vim /var/www/html/index.html
- 20Reload httpd servicesudo systemctl reload httpd.service
- 21Where can you find default SSL settings for server?/etc/httpd/conf.d/ssl.conf
- 22certbot changeslook at video 20:45
- 23You own www.example.com. Indicate it in http config filesudo vi /etc/httpd/conf/httpd.conf
ServerName www.example.com:80 - 24In which director modules can be edited or removed?/etc/httpd/conf.modules.d
Información
- Descripción
- Easy KodeKloud - Linux Fichas sobre Chapter 6.7 Configure HTTP server, creado por Archimed Nemes el 27/05/2022.
- Creado por
- Archimed Nemes
- Visitas
- 1
- Valoración