-
Notifications
You must be signed in to change notification settings - Fork 1
Virtual Host
dorsradek edited this page Apr 3, 2012
·
2 revisions
Wirtual host nie jest niezbędny ale lepiej, żeby każdy go sobie zrobił - dzięki temu nie trzeba będzie wpisywać adresu w postaci localhost/manager/web/... tylko manager.local/...
w pliku C:\xampp\apache\conf\extra\httpd-vhosts.conf zastępujemy wszystko poniższym fragmentem:
NameVirtualHost 127.0.0.1:80
Listen 127.0.0.1:80
<VirtualHost 127.0.0.1:80>
ServerName manager.local
DocumentRoot "C:\xampp\htdocs\manager/web"
DirectoryIndex app.php
<Directory "C:\xampp\htdocs\manager/web">
AllowOverride All
Allow from All
</Directory>
</VirtualHost>
Upewniamy się, że linia Include "conf/extra/httpd-vhosts.conf"
w C:\xampp\apache\conf\httpd.conf jest odkomentowana (nie powinno być # na początku).
W pliku C:\Windows\System32\drivers\etc\hosts dodajemy 127.0.0.1 manager.local
Restartujemy xamppa, po restarcie to co jest dostepne w folderze C:\xampp\htdocs\manager/web powinno być dostepne w przeglądarce pod adresem http://manager.local/