How to setup sub domain in your localhost
Автор: CodePlaygrounds
Загружено: 2014-07-25
Просмотров: 13614
Описание:
In this video I am going to show how to setup sub domain in locahost
To setup subdomain in localhost we need to change two files
we simply just make a copy of both file for rollback
now we have copy of both files
let's start our changes
open hosts file first
host file by default is not editable by normal user so we need to run notepad as administrator
here I am going to add in host file
127.0.0.1 sub.domain.com.localhost
now I need to make a folder as sub.domain.com to access the sub domain
Go inside sub.domain.com
And create a index file for just checking is sub domain is working
Now goto
sub.domain.com.localhost.com in your browser
don't forget to restart your server to apply these changes
due to my document root is different I need to change that
Now it's showing that It's works!
Thanks for watching!
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: