Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> virtualhost
mlody
post 4.10.2002, 17:26:53
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.
Go to the top of the page
+Quote Post
hyper
post 4.10.2002, 18:30:45
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ą
Go to the top of the page
+Quote Post
mlody
post 5.10.2002, 00:53:02
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!
Go to the top of the page
+Quote Post
Officerrr
post 5.10.2002, 01:47:12
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]
Go to the top of the page
+Quote Post
FiDO
post 5.10.2002, 03:57:28
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 ^^^
Go to the top of the page
+Quote Post
GeoS
post 5.10.2002, 11:16:56
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 biggrin.gif


--------------------
Zanim zadasz pytanie, zawsze wczesniej zajrzyj do manuala ( pl.php.net/manual/pl/ ).
Szukasz skryptow - www.hotscripts.com
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 19.07.2025 - 19:33