Serwer Apache - Jolanta Bachan
Transkrypt
Serwer Apache - Jolanta Bachan
Serwer Apache Instalacja i konfiguracja Jolanta Bachan Informatyka 2008-05-15 Download ● Ściągnij Apache Server z oficjalnej strony projektu Apache HTTP Server Project: http://httpd.apache.org/download.cgi 2008-05-15 Serwer Apache Jolanta Bachan 2 Download 2008-05-15 Serwer Apache Jolanta Bachan 3 Download 2008-05-15 Serwer Apache Jolanta Bachan 4 Instalacja ● Nazwa serwera: localhost ● Email: – w domu: Wasz adres emailowy – w pracowni komputerowej: mój adres: [email protected] 2008-05-15 Serwer Apache Jolanta Bachan 5 Konfiguracja ● Konfiguracji dokonuje się w pliku httpd.conf – ● ● Najpierw zróbcie kopię oryginalnego pliku (back-up) Ustawienia standardowe – Listen 127.0.0.1:80 – ServerName 127.0.0.1 Ustawienia prywatne – Prywatny zewnętrzny adres IP – Listen 79.173.26.201:80 – ServerName 79.173.26.201 2008-05-15 Serwer Apache Jolanta Bachan 6 Adres IP ● Informacje o Waszym adresie IP znajdziecie w danych połączenia 2008-05-15 Serwer Apache Jolanta Bachan 7 Adres IP ● ● Jeżeli w danych o połączeniu internetowym jest wewnętrzny adres IP, musicie znaleźć informacje o Waszym zewnętrznym adresie IP. Jest wiele programów w internecie, które powiedzą Wam, jaki jest Wasz zewnętrzny adres IP. 2008-05-15 Serwer Apache Jolanta Bachan 8 Adres IP ● http://www.ip-adress.com/ 2008-05-15 Serwer Apache Jolanta Bachan 9 Adres IP ● http://wwwhomes.uni-bielefeld.de/gibbon/ 2008-05-15 Serwer Apache Jolanta Bachan 10 Adres IP ● http://wwwhomes.uni-bielefeld.de/gibbon/ Thu May 8 16:18:14 MEST 2008 Your IP system information is: ● IP address: 79.173.26.201 ● Host name: host-79.173.26.201.tesatnet.pl ● Software: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080404 Firefox/2.0.0.14 2008-05-15 Serwer Apache Jolanta Bachan 11 Praca z Apache ● ● Dokumenty HTML wstawiamy do folderu htdocs Programy CGI w Perlu wstawiamy do folderu cgi-bin 2008-05-15 Serwer Apache Jolanta Bachan 12 Praca z Apache ➔ Dysk lokalny (C:) ➔ Program files ➔ Apache Software Foundation ➔ Apache2.2 cgi-bin ➔ htdocs ➔ 2008-05-15 Serwer Apache Jolanta Bachan 13 Powodzenia! 2008-05-15 Serwer Apache Jolanta Bachan 14