Friday 18 November 2011

Adding a subdomain in XAMPP

Adding a subdomain in Xampp
Follow the below steps to Add a subdomain in Xampp
1.Open the file "http-vhosts" in a text editor from the below location /Xampp/Apache/conf/extra/

2.Uncomment this line # NameVirtualHost *:80 To uncomment a line (just remove # in the line)

3.Then to add a subdomain add these lines at the end of file DocumentRoot
"C:/Program Files/Xampp/htdocs/site/" ServerName site1.com

4.You can additional options with Virtual host like the below
Server Admin shan@shan.com
DocumentRoot "C:/Program Files/Xampp/htdocs/site/"
ServerName site1.com Server alias site1.com
Error log "C:/Program Files/Xampp/htdocs/site/a2.log"
Transfer log "C:/Program Files/Xampp/htdocs/site/a1.log"

No comments:

Post a Comment