Touki Liu
Touki Liu

Reputation: 51

can not access apache2 server global virtualhost from local

I can access my appache2 server with example.com from global host(like 4G network etc.), but not access from local host. How can I fix it?

Appache2 configuration like this:

<VirtualHost *:80>
        ServerName example.com
        DocumentRoot /var/www/example
        ...
</VirtualHost>

Upvotes: 0

Views: 45

Answers (1)

Ork Sophanin
Ork Sophanin

Reputation: 146

Did you add your domain with your IP localhost to this C:\Windows\System32\drivers\etc\hosts yet?

Upvotes: 1

Related Questions