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) ... |
|
|
|
![]() |
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 |
|
|
|
djgrin XAMPP - problem z VirtualHost 17.10.2007, 19:01:16
krzyszbi hej
sam używam xampp-a i mi się podoba a mam pous... 22.10.2007, 11:28:43 
JoShiMa Cytat(krzyszbi @ 22.10.2007, 11:28:43... 23.03.2011, 22:44:25
gregxp Cześć
mnie nie działa domena wpisana www.nazwa tz... 24.05.2009, 23:50:36
webdice W pliku hosts dodajesz:
Kod127.0.0.1 nazwadomeny.... 25.05.2009, 08:26:45
Armstrong a spróbuj:
Kod<VirtualHost *:80>
N... 20.05.2010, 12:31:26
erix Mam Windows7 i upycham ten plik tysiącami wpisów. 23.03.2011, 23:27:23
JoShiMa Czy mam rozumieć, że tworzysz sobie brakującą stru... 24.03.2011, 00:38:21
erix On tam jest standardowo, w Twoim systemie widoczni... 24.03.2011, 00:42:44
JoShiMa Cytat(erix @ 24.03.2011, 00:42:44 ) O... 24.03.2011, 00:46:15 ![]() ![]() |
|
Aktualny czas: 26.12.2025 - 05:43 |