How to make Virtual Host ?
Minggu, 10 Februari 2013
0
komentar
This is very silly blog but very useful to beginner in Web development.
How can we make virtual host !!
I am assuming that you are PHP developer and already installed XAMPP or separately installed Apache.
Step 1: Make Virtual host entry in httpd-vhost.conf file
httpd-vhost.conf file from installation folder of Apache.
Put below lines of code,
ServerName would be your virtual host name and DomentRoot and Directory would be path to source code.
Step 2 : Make Entry of domain name in Hosts file
Location of Hosts file,
Windows 95/98/Me : c:\windows\hosts
Windows NT/2000/XP Pro : c:\winnt\system32\drivers\etc\hosts
Windows XP Home and later versoin : c:\windows\system32\drivers\etc\hosts
Linux/Mac : /etc/hosts
Put below line at the end of file,
Thanks for reading the Article!
How can we make virtual host !!
I am assuming that you are PHP developer and already installed XAMPP or separately installed Apache.
Step 1: Make Virtual host entry in httpd-vhost.conf file
httpd-vhost.conf file from installation folder of Apache.
Put below lines of code,
<VirtualHost *:80>
DocumentRoot /Path/To/Source/Code/
ServerName vhostname.example.com
<Directory /Path/To/Source/Code/>
AllowOverride All
Order deny,allow
Allow from all
</Directory>
</VirtualHost>
ServerName would be your virtual host name and DomentRoot and Directory would be path to source code.
Step 2 : Make Entry of domain name in Hosts file
Location of Hosts file,
Windows 95/98/Me : c:\windows\hosts
Windows NT/2000/XP Pro : c:\winnt\system32\drivers\etc\hosts
Windows XP Home and later versoin : c:\windows\system32\drivers\etc\hosts
Linux/Mac : /etc/hosts
Put below line at the end of file,
127.0.0.1 vhostname.example.com
Thanks for reading the Article!
Follow me @ Just iOS
Contact us @ Solution Analysts pvt. ltd.
TERIMA KASIH ATAS KUNJUNGAN SAUDARA
Judul: How to make Virtual Host ?
Ditulis oleh Unknown
Rating Blog 5 dari 5
Semoga artikel ini bermanfaat bagi saudara. Jika ingin mengutip, baik itu sebagian atau keseluruhan dari isi artikel ini harap menyertakan link dofollow ke https://apk-zenonia5.blogspot.com/2013/02/how-to-make-virtual-host.html. Terima kasih sudah singgah membaca artikel ini.Ditulis oleh Unknown
Rating Blog 5 dari 5
0 komentar:
Posting Komentar