3. XAMPP: rename localhost, Tutorial
Rename localhost: e.g. http://site instead of http://localhost
Steps :
- allocate a new name to server's ip address 127.0.0.1 in windows hosts
- add a virtual host to xampp's httpd-vhosts.conf file
- 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 127.0.0.1, 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 |