go to httpd-vhosts.conf(wamp\bin\apache\Apache2.4.4\conf\extra\httpd-vhosts.conf)
add this code
add this code
# Virtual Hosts
#
# Required modules: mod_log_config
Listen 80
<VirtualHost *:80>
    ServerAdmin admin@localhost.com
    DocumentRoot "C:\Wamp\www\"
    ServerName localhost
    <Directory "C:/wamp/www/">
                Options Indexes FollowSymLinks
            Order allow,deny
            Allow from all
        </Directory>
</VirtualHost>
<VirtualHost *:80>
    ServerAdmin admin@localhost.com
    DocumentRoot "C:\Users\Chris\Documents\Projects\testsite\Site"
    ServerName projectname.dev
    ServerAlias projectname.dev
    <directory "C:\Users\Chris\Documents\Projects\testsite\Site">
        Options Indexes FollowSymLinks
        Order Allow,Deny
        Allow from all
    </directory>
</VirtualHost>add Host (C:\Windows\System32\drivers\etc\hosts)# Wamp Server Settings 127.0.0.1 localhost 127.0.0.1projectname.devedithttpd.conf (C:\wamp\bin\apache\Apache2.4.4\conf\httpd.conf)# Virtual hosts Include conf/extra/httpd-vhosts.confFinally restart wamp server
 
0 comments:
Post a Comment