Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

Virtual Host in wamp don't work.


Go to End


2 Posts   1364 Views

Avatar
kyhuuphat123

Community Member, 3 Posts

30 November 2012 at 9:57pm

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
Avatar
kyhuuphat123

Community Member, 3 Posts

3 December 2012 at 4:44pm

Please help me.