1- D:\xampp\apache\conf\httpd.conf
2- D:\xampp\apache\conf\extra\httpd-vhosts.conf
3- C:\Windows\System32\drivers\etc\hosts
Her 3 dosyayı da açarken sağ tıklayıp yönetici olarak açın.
1- Adım ------------
D:\xampp\apache\conf\httpd.conf** dosyasını bu şekilde değiştirdim.
Eski
Kod: Tümünü seç
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
Kod: Tümünü seç
# Virtual hosts
Include conf/extra/httpd-vhosts.conf
D:\xampp\apache\conf\extra\httpd-vhosts.conf Dosyasına Aşağıdaki bilgileri ekleyin
Kod: Tümünü seç
<VirtualHost *:80>
ServerName proje_15
DocumentRoot "D:/xampp/htdocs/proje_15/public/"
</VirtualHost>
C:\Windows\System32\drivers\etc\hosts Dosyasına Aşağıdaki bilgileri ekleyin
Eski
Kod: Tümünü seç
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
::1 localhost
Kod: Tümünü seç
# localhost name resolution is handled within DNS itself.
127.0.0.1 localhost
::1 localhost
127.0.0.1 proje_15
Kod: Tümünü seç
4- Adım ------------
Final
http://proje_15 artık bu şekilde çalışıyor....
Umarım faydalı olur...