![]() |
![]() ![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 4.10.2002 Ostrzeżenie: (0%) ![]() ![]() |
Mogę sobie zrobić na moim komputerze virtualhost'y ?
Mam Apache'a 2 i w http.conf ServerName localhost. Czy moge zrobić np. <virtualhost costam.locathost> Próbowałem i mi wywala Apache'a. |
|
|
![]()
Post
#2
|
|
![]() Grupa: Zarejestrowani Postów: 207 Pomógł: 0 Dołączył: 7.03.2002 Skąd: Warszawa Ostrzeżenie: (0%) ![]() ![]() |
Gorąco polecam:
http://httpd.apache.org/docs-2.0/ - Indeks dokumentacji httpd 2 http://httpd.apache.org/docs-2.0/vhosts/ - Wirtualne hosty dokładniej http://google.com.pl/ - Niezastąpiona wyszukiwarka WWW http://groups.google.com.pl/ - Niezastąpiona wyszukiwarka Usenetu[/img] -------------------- Tomasz Wasiluk
Polcode >> Szukamy programistów z pasją |
|
|
![]()
Post
#3
|
|
Grupa: Zarejestrowani Postów: 5 Pomógł: 0 Dołączył: 4.10.2002 Ostrzeżenie: (0%) ![]() ![]() |
Czytałem dokładnie dokumentacje i nic:
Mam takie ustawienie w httpd.conf: Kod ServerName localhost
Listen 80 NameVirtualHost 127.0.0.1 <VirtualHost localhost> ServerAdmin admin@localhost DocumentRoot c:/localhost ServerName localhost ErrorLog /logs/error_log </VirtualHost> <VirtualHost costam.localhost> ServerAdmin admin@localhost DocumentRoot c:/localhost/costam ServerName costam.localhost ErrorLog /logs/error_log </VirtualHost> Wywala mi taki bład: ERROR (33501) Host not found: Cannot resolve host name costam.localhost --- ignoring! |
|
|
![]()
Post
#4
|
|
![]() Grupa: Zarejestrowani Postów: 33 Pomógł: 0 Dołączył: 30.08.2002 Ostrzeżenie: (0%) ![]() ![]() |
wpisy do hosts musisz zrobic
-------------------- --
[Linux Administrator] |
|
|
![]()
Post
#5
|
|
![]() Grupa: Przyjaciele php.pl Postów: 1 717 Pomógł: 0 Dołączył: 12.06.2002 Skąd: Wolsztyn..... Studia: Zielona Góra Ostrzeżenie: (0%) ![]() ![]() |
Kod ServerName localhost
Listen 80 NameVirtualHost 127.0.0.1 <VirtualHost localhost> ServerAdmin admin@localhost DocumentRoot c:/localhost ServerName localhost ErrorLog /logs/error_log </VirtualHost> <VirtualHost localhost> ServerAdmin admin@localhost DocumentRoot c:/localhost/costam ServerName costam.localhost ErrorLog /logs/error_log </VirtualHost> Sprobuj tak ^^^ |
|
|
![]()
Post
#6
|
|
![]() Grupa: Zarejestrowani Postów: 602 Pomógł: 0 Dołączył: -- Skąd: W - WA -> GRO Ostrzeżenie: (0%) ![]() ![]() |
Albo jeszcze lepiej:
Kod ServerName localhost
Listen 80 NameVirtualHost 127.0.0.1 <VirtualHost 127.0.0.1> ServerAdmin admin@localhost DocumentRoot c:/www/localhost ServerName localhost ErrorLog /logs/error_log </VirtualHost> <VirtualHost 127.0.0.1> ServerAdmin admin@localhost DocumentRoot c:/www/costam ServerName costam.localhost ErrorLog /logs/error_log </VirtualHost> Tylko pamietaj o zrobieniu wpisow do pliku hosts ![]() -------------------- Zanim zadasz pytanie, zawsze wczesniej zajrzyj do manuala ( pl.php.net/manual/pl/ ).
Szukasz skryptow - www.hotscripts.com |
|
|
![]() ![]() |
![]() |
Wersja Lo-Fi | Aktualny czas: 19.07.2025 - 19:33 |