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:
NameVirtualHost *:80 <VirtualHost 127.0.0.1> ServerName localhost DocumentRoot "E:/wamp/www" </VirtualHost> <VirtualHost 127.0.0.1> ServerName www.zf-cms.com ServerAlias zf-cms.local DocumentRoot "E:/wamp/www/zf-cms/public" <Directory "E:/wamp/www/zf-cms/public"> allow from all order allow,deny AllowOverride All </Directory> DirectoryIndex index.html index.php </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:
[Tue Apr 06 14:40:57 2010] [notice] Parent: Received shutdown signal -- Shutting down the server. [Tue Apr 06 14:40:58 2010] [notice] Child 5380: Released the start mutex [Tue Apr 06 14:40:59 2010] [notice] Child 5380: All worker threads have exited. [Tue Apr 06 14:40:59 2010] [notice] Child 5380: Child process is exiting [Tue Apr 06 14:40:59 2010] [notice] Parent: Child process exited successfully. Warning: DocumentRoot [E:/wamp/www/zf-cms/public] does not exist [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 [Tue Apr 06 14:41:00 2010] [warn] NameVirtualHost *:80 has no VirtualHosts [Tue Apr 06 14:41:00 2010] [notice] Apache/2.2.11 (Win32) PHP/5.3.0 configured -- resuming normal operations [Tue Apr 06 14:41:00 2010] [notice] Server built: Dec 10 2008 00:10:06 [Tue Apr 06 14:41:00 2010] [notice] Parent: Created child process 108 Warning: DocumentRoot [E:/wamp/www/zf-cms/public] does not exist [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 [Tue Apr 06 14:41:00 2010] [warn] NameVirtualHost *:80 has no VirtualHosts Warning: DocumentRoot [E:/wamp/www/zf-cms/public] does not exist [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 [Tue Apr 06 14:41:00 2010] [warn] NameVirtualHost *:80 has no VirtualHosts [Tue Apr 06 14:41:00 2010] [notice] Child 108: Child process is running [Tue Apr 06 14:41:00 2010] [notice] Child 108: Acquired the start mutex. [Tue Apr 06 14:41:00 2010] [notice] Child 108: Starting 64 worker threads. [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 :/