W3-Video WEB Tutorials

w3-video.com is a Free eLearning Website with over 500 video tutorials on HTML5, XAMPP, .htaccess, Firefox, Notepad++

XAMPP Tutorial

Home HTML5 XAMPP .htaccess Firefox Notepad++

3. XAMPP: rename localhost, Tutorial

Share it

Rename localhost: e.g. http://site instead of http://localhost

Steps :

  1. allocate a new name to server's ip address in windows hosts
  2. add a virtual host to xampp's httpd-vhosts.conf file
  3. test it

Video demonstration XAMPP: rename localhost

3. XAMPP: rename localhost, Tutorial

min video details
00:02 access XAMPP Control Panel
00:06 start Apache
00:08 access xampp on server
00:16 type in the user and password fro xampp directory
00:22 let's change the name 'localhost' to 'site' for example
00:31 stop Apache
00:36 open windows hosts file (path C:\WINDOWS\system32\drivers\etc)
00:52 allocate a new name to the ip address, e.g. 'site'
01:00 open xampp's httpd-vhosts.conf file (path C:\xampp\apache\conf\extra)
01:19 add a virtual host
02:11 restart Apache
02:00 access localhost
02:13 test: replacing 'localhost' with 'site'
02:17 it's working! Authentification is required!
03:11 if you're working on a website, you can simply access it by typing in 'site'
03:17 you can still access xampp directory with the new name e.g. site/xampp/
03:30 you can use a secured connection with the new name e.g. https://site