I have the following code in my virtual host file:
<VirtualHost 198.71.60.211:80>
ServerAdmin [email protected]
ServerName mysite.com
DocumentRoot /var/www/mysite.com/public_html/
ErrorLog /var/www/mysite.com/logs/error.log
CustomLog /var/www/mysite.com/logs/access.log combined
<Directory /var/www/mysite.com>
order deny,allow
deny from all
allow from 97.107.131.11
</Directory>
Then i restarted apache. But for some reason, everyone can still see the website. I want only users with IP address 97.107.131.11 to be able to see my site.
What am I doing wrong?
http://mysite[dot]com
. I can't disclose the url right now. But when i tell my friends to go to it, they can see the site . I remember the code above worked before on another CentOS server. But it doesn't seem to be working on this ubuntu server. Am I missing modules for apache or something?/mysite.com/
and not awww
or anything else in there?