Jump to:

22983 Posts in 11719 Topics by 2827 members

General Questions

SilverStripe Forums » General Questions » Virtual Host in wamp don't work.

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 357 Views
  • kyhuuphat123
    Avatar
    Community Member
    3 Posts

    Virtual Host in wamp don't work. Link to this post

    I open Apache -> httpd.conf.

    I set:
    # Virtual hosts
    Include conf/extra/httpd-vhosts.conf.

    I create a virtual host.

    hosts

    127.0.0.1 localhost
    127.0.0.1 healthylife.local

    httpd-vhosts.conf

    <VirtualHost *:80>
    ServerAdmin webmaster@localhost.com
    DocumentRoot "c:/wamp/www"
    ServerName localhost
    ErrorLog "logs/localhost-error.log"
    CustomLog "logs/localhost-access.log" common
    </VirtualHost>

    <VirtualHost *:80>
       ServerName healthylife.local
    DocumentRoot "e:\Silverstripe\healthylife_project\trunk"
    </VirtualHost>

    <Directory "e:\Silverstripe\healthylife_project\trunk">
           AllowOverride All
           Order allow,deny
           Allow from all
    </Directory>

    Result:

    Localhost run: http://localhost/
    Virtual host don't run: http://healthylife.local/

    Attached Files
  • kyhuuphat123
    Avatar
    Community Member
    3 Posts

    Re: Virtual Host in wamp don't work. Link to this post

    Please help me.

    357 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.