Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

 
Reply to this topicStart new topic
> Problem z konfiguracja vhosts, DocumentRoot nie isnieje?
korys
post 6.04.2010, 14:09:32
Post #1





Grupa: Zarejestrowani
Postów: 3
Pomógł: 0
Dołączył: 9.12.2009

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


Witam,
Od kilku godzin próbuje skonfigurować Apacha, przeczytałem już chyba z 20 tutoriali do tworzenia vhostów, ale ciągle nie chcą mi działać.

Mój httpd-vhosts.conf:
  1. NameVirtualHost *:80
  2.  
  3. <VirtualHost 127.0.0.1>
  4. ServerName localhost
  5. DocumentRoot "E:/wamp/www"
  6. </VirtualHost>
  7.  
  8. <VirtualHost 127.0.0.1>
  9. ServerName www.zf-cms.com
  10. ServerAlias zf-cms.local
  11. DocumentRoot "E:/wamp/www/zf-cms/public"
  12. <Directory "E:/wamp/www/zf-cms/public">
  13. allow from all
  14. order allow,deny
  15. AllowOverride All
  16. </Directory>
  17. DirectoryIndex index.html index.php
  18. </VirtualHost>


w httpd.conf odkomentowałem 'Include conf/extra/httpd-vhosts.conf', a DocumentRoot jest ustawiony na "e:/wamp/www".
W pliku 'C:/Windows/System32/drivers/etc/hosts' dodałem linijkę '127.0.0.1 zf-cms.local'

po wpisaniu w przeglądarce zf-cms.local przechodzi mi do lokalizacji 'E:/wamp/www' zamiast 'E:/wamp/www/zf-cms/public'

w errorlogu jest cos takiego:
  1. [Tue Apr 06 14:40:57 2010] [notice] Parent: Received shutdown signal -- Shutting down the server.
  2. [Tue Apr 06 14:40:57 2010] [notice] Child 5380: Exit event signaled. Child process is ending.
  3. [Tue Apr 06 14:40:58 2010] [notice] Child 5380: Released the start mutex
  4. [Tue Apr 06 14:40:59 2010] [notice] Child 5380: All worker threads have exited.
  5. [Tue Apr 06 14:40:59 2010] [notice] Child 5380: Child process is exiting
  6. [Tue Apr 06 14:40:59 2010] [notice] Parent: Child process exited successfully.
  7. Warning: DocumentRoot [E:/wamp/www/zf-cms/public] does not exist
  8. [Tue Apr 06 14:41:00 2010] [warn] VirtualHost 127.0.0.1:80 overlaps with VirtualHost 127.0.0.1:80, the first has precedence, perhaps you need a NameVirtualHost directive
  9. [Tue Apr 06 14:41:00 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
  10. [Tue Apr 06 14:41:00 2010] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations
  11. [Tue Apr 06 14:41:00 2010] [notice] Server built: Dec 10 2008 00:10:06
  12. [Tue Apr 06 14:41:00 2010] [notice] Parent: Created child process 108
  13. Warning: DocumentRoot [E:/wamp/www/zf-cms/public] does not exist
  14. [Tue Apr 06 14:41:00 2010] [warn] VirtualHost 127.0.0.1:80 overlaps with VirtualHost 127.0.0.1:80, the first has precedence, perhaps you need a NameVirtualHost directive
  15. [Tue Apr 06 14:41:00 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
  16. Warning: DocumentRoot [E:/wamp/www/zf-cms/public] does not exist
  17. [Tue Apr 06 14:41:00 2010] [warn] VirtualHost 127.0.0.1:80 overlaps with VirtualHost 127.0.0.1:80, the first has precedence, perhaps you need a NameVirtualHost directive
  18. [Tue Apr 06 14:41:00 2010] [warn] NameVirtualHost *:80 has no VirtualHosts
  19. [Tue Apr 06 14:41:00 2010] [notice] Child 108: Child process is running
  20. [Tue Apr 06 14:41:00 2010] [notice] Child 108: Acquired the start mutex.
  21. [Tue Apr 06 14:41:00 2010] [notice] Child 108: Starting 64 worker threads.
  22. [Tue Apr 06 14:41:00 2010] [notice] Child 108: Starting thread to listen on port 80.


Wzorowałem się na podstawie tego http://www.trailheadinteractive.com/creati...tall_windows_xp

--------------------------------------------------------------------
Głupota ludzka nie zna granic, podawałem zły adres w DocumentRoot :/

Ten post edytował korys 6.04.2010, 14:17:42
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: 18.07.2025 - 12:26