GoConqr hat ein neues Design! Sag uns, wie es dir gefällt.

Karteikarten

Chapter 6.7 Configure HTTP server

Archimed Nemes KodeKloud - Linux Easy Englisch 24 Karten

Karten in diesem Stapel (24)

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

Informationen

Beschreibung
Easy KodeKloud - Linux Karteikarten am Chapter 6.7 Configure HTTP server, erstellt von Archimed Nemes am 27/05/2022.
Erstellt von
Archimed Nemes
Aufrufe
1
Bewertung

Feedback

Worum geht es?

Wie gefällt dir das neue Design?

Dein Eindruck