Error creating virtual host in Apache 2

Asked

Viewed 300 times

1

When I try to create a virtual host in apache I can’t access it

I’ve followed the following procedure:

Go to the C:\Windows\System32\drivers\etc\hosts

and put the 127.1.0.1 meusite.dev

Go to the C:\Apache\conf\httpd.conf

and uncomment the line: Include conf/extra/httpd-vhosts.conf

Go to the C:\Apache\conf\extra\vhost.conf

and put:

<VirtualHost *:80>
   ServerAdmin webmaster@localhost
   DocumentRoot "c:/Apache2/htdocs/teste
   ServerName  meusite.dev
   ServerAlias meusite.dev
</VirtualHost>

it still didn’t work.

Note: I’m not using Xampp or Wamp, I’m only using Apache 2.4

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.