开发者

blocking access to my apache server

According to this site: http://httpd.apache.org/docs/2.2/howto/access.html

I need to use something like the script below to block access to my site for everyone except specific ip addresses:

Order deny,allow
Deny from all
Allow 开发者_Go百科from dev.example.com

It's not clear from that site, where I type this script.

I am using Ubuntu 10.04 as my development machine.


Write exact IPs or it's starting part including ending dot under allow from and you are done.

Order deny,allow
Deny from all
Allow from 192.168.1.1
Allow from 192.168.1.2
Allow from 10.0.

BTW, belongs to ServerFault.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜