Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> virtualhost
mlody
post
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
 
Start new topic
Odpowiedzi
GeoS
post
Post #2





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 (IMG:http://forum.php.pl/style_emoticons/default/biggrin.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 3.10.2025 - 13:25