<VirtualHost *:80> ServerName localhost DocumentRoot "c:\wamp\www" <Directory "c:\wamp\www"> AllowOverride All Require local </Directory> DirectoryIndex index.html index.php </VirtualHost> <VirtualHost *:80> ServerName strona.localhost DocumentRoot "c:\wamp\www\projekt\strona" <Directory "c:\wamp\www\projekt\strona"> AllowOverride All Require all granted </Directory> DirectoryIndex index.html index.php </VirtualHost>
w pliku hosts mam:
# localhost name resolution is handled within DNS itself. # 127.0.0.1 localhost # ::1 localhost 127.0.0.1 localhost 127.0.0.1 strona.localhost
I efekt mam taki, że zawsze otwiera mi się panel od wampa czyli localhost.
Jeżeli przerzuce stronę bezpośrednio do folderu projekt i zmienie/skrócę documentroot i directory działa ok. Tylko, że ja muszę mieć stronkę w dalszym folderze.
Jak tego dokoanać?