Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> XAMPP - problem z VirtualHost, Bez znaczenia, co ustawiam, zawsze wyswietla pierwszy katalog
djgrin
post
Post #1





Grupa: Zarejestrowani
Postów: 15
Pomógł: 0
Dołączył: 13.05.2007

Ostrzeżenie: (0%)
-----


Witam.
Zmienilem serwer na XAMPPa (pod WinXP SP2) i chcialem ustawic sobie wirtualki: kilka adresow, ktore beda korzystac z roznych katalogow. Problem polega na tym, ze cokolwiek wpisze w httpd.conf, to apache jakby "widzi" tylko jeden - pierwszy wpis.
Aktualnie moj wpis w httpd.conf wyglada tak (chcialem na poczatek osiagnac cos takiego, ze test.pl wskazuje na katalog test, a localhost na htdocs):

NameVirtualHost *
<VirtualHost *>
DocumentRoot "C:\xampp\htdocs\test"
ServerName test.pl
</VirtualHost>
<VirtualHost _default_>
DocumentRoot "C:\xampp\htdocs"
</VirtualHost>
... i w tym momencie zawsze laduje mi sie strona w katalogu test (bez roznicy czy wpisze localhost czy test.pl).

Czy ktos moze mi powiedziec co robie zle? Moze jakis link do "manuala" albo rozwiazan podobnych problemow?
Z gory dzieki za kazda pomoc (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) .
PS. Oczywiscie w WINDOWS/system32/drivers/ets/hosts odpowiedni wpis poczynilem (IMG:http://forum.php.pl/style_emoticons/default/winksmiley.jpg) ...
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
f4ll3ns3raf1n
post
Post #2





Grupa: Zarejestrowani
Postów: 29
Pomógł: 0
Dołączył: 27.11.2009

Ostrzeżenie: (0%)
-----


po uruchomieniu serwera:
Kod
[Thu May 20 13:40:48 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:48 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:48 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:48 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:48 2010] [warn] NameVirtualHost bliskomnie2:80 has no VirtualHosts
[Thu May 20 13:40:49 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:49 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:49 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:49 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:49 2010] [warn] NameVirtualHost bliskomnie2:80 has no VirtualHosts
[Thu May 20 13:40:51 2010] [notice] Digest: generating secret for digest authentication ...
[Thu May 20 13:40:51 2010] [notice] Digest: done
[Thu May 20 13:40:51 2010] [notice] Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu May 20 13:40:51 2010] [notice] Server built: Nov 11 2009 14:29:03
[Thu May 20 13:40:51 2010] [notice] Parent: Created child process 7396
[Thu May 20 13:40:51 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:51 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:51 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:51 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:51 2010] [warn] NameVirtualHost bliskomnie2:80 has no VirtualHosts


po wywołaniu adresu doszło:
Kod
[Thu May 20 13:40:52 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:52 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:52 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:52 2010] [warn] _default_ VirtualHost overlap on port 80, the first has precedence
[Thu May 20 13:40:52 2010] [warn] NameVirtualHost bliskomnie2:80 has no VirtualHosts
[Thu May 20 13:40:53 2010] [notice] Digest: generating secret for digest authentication ...
[Thu May 20 13:40:53 2010] [notice] Digest: done
[Thu May 20 13:40:54 2010] [notice] Child 7396: Child process is running
[Thu May 20 13:40:54 2010] [notice] Child 7396: Acquired the start mutex.
[Thu May 20 13:40:54 2010] [notice] Child 7396: Starting 150 worker threads.
[Thu May 20 13:40:54 2010] [notice] Child 7396: Starting thread to listen on port 443.
[Thu May 20 13:40:54 2010] [notice] Child 7396: Starting thread to listen on port 80.
[Thu May 20 13:40:54 2010] [notice] Child 7396: Starting thread to listen on port 443.
[Thu May 20 13:40:54 2010] [notice] Child 7396: Starting thread to listen on port 80.




EDIT
ok, nasunąłeś mi rozwiązanie.
dodałem na samym początku pliku httpd-vhosts.conf linijke
Kod
NameVirtualHost *:80


i od tej pory bangla :-)

Ten post edytował f4ll3ns3raf1n 20.05.2010, 12:48:31
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: 26.12.2025 - 05:43