Edit the setting files:
xampp/apache/conf/httpd.conf
xampp/apache/conf/extra/httpd-vhosts.conf
step 1: Edit xampp/apache/conf/httpd.conf
Edit the Document Root variable settings @ line nr : 188
--------------------------------------------------------
change DocumentRoot "C:/xampp/htdocs" into
DocumentRoot "C:/SVN/test-site/sitefolder"
Then come to the line looks like "
#
# This should be changed to whatever you set DocumentRoot to.
#
#
remove the entire directory tag or comment all the lines using # .
--------------------------------------------------------
Add the following in that place
< VirtualHost *:80 >
ServerName sitelocal.com
ServerAlias www.sitelocal.com
DocumentRoot C:/SVN/test-site/sitefolder
< Directory C:/SVN/test-site/sitefolder >
Order allow,deny
Allow from all
step 2: open the file xampp/apache/conf/extra/httpd-vhosts.conf and add the following lines
< VirtualHost *:80 >
DocumentRoot "C:/SVN/test-site/sitefolder"
ServerName sitelocal
step 3:Edit the hosts file in the path:C:\WINDOWS\system32\drivers\etc
add the line 127.0.0.1 sitelocal.com
No comments:
Post a Comment