Localhost virtual host ayarlarım

Herkese lazım olacak bilgiler
Cevapla
abdulkadirlevent
Site Admin
Mesajlar: 18
Kayıt: Pzr Oca 19, 2020 4:27 pm

Localhost virtual host ayarlarım

Mesaj gönderen abdulkadirlevent »

D:\xampp\apache\conf\httpd.conf

Kod: Tümünü seç

# Virtual hosts
 Include conf/extra/httpd-vhosts.conf
D:\xampp\apache\conf\extra\httpd-vhosts.conf

Kod: Tümünü seç

<VirtualHost *:80>
   ServerName localhost
   DocumentRoot "D:/xampp/htdocs/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_1
   DocumentRoot "D:/xampp/htdocs/proje_1/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_2
   DocumentRoot "D:/xampp/htdocs/proje_2/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_3
   DocumentRoot "D:/xampp/htdocs/proje_3/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_4
   DocumentRoot "D:/xampp/htdocs/proje_4/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_5
   DocumentRoot "D:/xampp/htdocs/proje_5/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_6
   DocumentRoot "D:/xampp/htdocs/proje_6/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_7
   DocumentRoot "D:/xampp/htdocs/proje_7/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_8
   DocumentRoot "D:/xampp/htdocs/proje_8/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_9
   DocumentRoot "D:/xampp/htdocs/proje_9/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_10
   DocumentRoot "D:/xampp/htdocs/proje_10/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_11
   DocumentRoot "D:/xampp/htdocs/proje_11/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_12
   DocumentRoot "D:/xampp/htdocs/proje_12/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_13
   DocumentRoot "D:/xampp/htdocs/proje_13/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_14
   DocumentRoot "D:/xampp/htdocs/proje_14/public/"
</VirtualHost>
<VirtualHost *:80>
   ServerName proje_15
   DocumentRoot "D:/xampp/htdocs/proje_15/public/"
</VirtualHost>
‪C:\Windows\System32\drivers\etc\hosts

Kod: Tümünü seç

 	127.0.0.1       localhost
 	::1             localhost
	127.0.0.1       proje_1
	127.0.0.1       proje_2
	127.0.0.1       proje_3
	127.0.0.1       proje_4
	127.0.0.1       proje_5
	127.0.0.1       proje_6
	127.0.0.1       proje_7
	127.0.0.1       proje_8
	127.0.0.1       proje_9
	127.0.0.1       proje_10
	127.0.0.1       proje_11
	127.0.0.1       proje_12
	127.0.0.1       proje_13
	127.0.0.1       proje_14
	127.0.0.1       proje_15

Cevapla