1 / 13

Usługi sieciowe Wykład 6 Apache2- debian

Usługi sieciowe Wykład 6 Apache2- debian. Jarosław Kurek WZIM SGGW. Ćwiczenie 1. Instalacja serwera WWW Apache2 #apt-get install apache2 Instalacja implementacji protokołów SSL #apt-get install openssl ssl-cert Instalacja php5:

mitch
Download Presentation

Usługi sieciowe Wykład 6 Apache2- debian

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Usługi siecioweWykład 6Apache2- debian Jarosław Kurek WZIM SGGW

  2. Ćwiczenie 1 Instalacja serwera WWW Apache2 #apt-get install apache2 Instalacja implementacji protokołów SSL #apt-get install openssl ssl-cert Instalacja php5: #apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi Sprawdzić działanie <?php phpinfo(); ?>

  3. Ćwiczenie 2 Instalacja certyfikatów znanych urzędów certyfikacji – komercyjne Należy włączyć SSL pod apache #a2enmod ssl Create a Certificate Signing Request mkdir /etc/apache2/ssl cd /etc/apache2/ssl openssl req -new -days 365 -nodes -keyout www.onet.pl.key -out www.onet.pl.csr

  4. Ćwiczenie 2 Konfiguracja ports.conf w /etc/apache2/...

  5. Ćwiczenie 2 Chronimy nasz klucz prywatny: chmod 400 /etc/apache2/ssl/www.onet.pl.key Wchodzimy na stronę np. www.thawte.com i wybieramy trial ssl wrzucamy zawartość CSR i czekamy na weryfikację i odbiór naszego CRT, którego musimy podpiąć do katalogu SSL wraz z certyfikatem zaufanego urzędu certyfikacji.

  6. Ćwiczenie 2

  7. Ćwiczenie 2

  8. Ćwiczenie 3 Wirtualne hosty: Na jednym IP >1 domena np. Wp.pl i onet.pl

  9. Ćwiczenie 3 Wirtualne hosty: a) Na jednym IP >1 domena np. Wp.pl i onet.pl

  10. Ćwiczenie 3 Wirtualne hosty: b) Na 2 IP domena np. Wp.pl i onet.pl 192.168.5.110 i 192.168.5.111 ALIAS: # ifconfig eth0:0 192.168.1.110 up

  11. Ćwiczenie 3 Wirtualne hosty: b) Na 2 IP domena np. Wp.pl i onet.pl 192.168.5.110 i 192.168.5.111

  12. Ćwiczenie 3 Server configuration NameVirtualHost 192.168.1.1 NameVirtualHost 172.20.30.40 <VirtualHost 192.168.1.1 172.20.30.40> DocumentRoot /www/server1 ServerName server.example.com ServerAlias server </VirtualHost> Wirtualne hosty: c) Ta sam content na dwóch IP

  13. Ćwiczenie 3 Listen 80Listen 8080NameVirtualHost 172.20.30.40:80NameVirtualHost 172.20.30.40:8080<VirtualHost 172.20.30.40:80>ServerName www.example.comDocumentRoot /www/domain-80</VirtualHost><VirtualHost 172.20.30.40:8080>ServerName www.example.comDocumentRoot /www/domain-8080</VirtualHost><VirtualHost 172.20.30.40:80>ServerName www.example.orgDocumentRoot /www/otherdomain-80</VirtualHost> Wirtualne hosty: d) Różne website’y na różnych portach

More Related