21278 Posts in 5728 Topics by 2599 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 186 Views |
-
Virtual Host in wamp don't work.

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.localhttpd-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/
| 186 Views | ||
|
Page:
1
|
Go to Top |

