Restrict access to directories through ip address
问题 I have a webserver with apache, say ip is 12.345.678.90 . In my www directory there are a few sites, say, site1 and site2 . Both belong to the same ip address - I created virtual hosts. Websites are on cakephp framework and there are a lots of directories, for example, app , app/tmp , lib , lib/Cake etc. When accessing the website like http://site1.com or http://site2.com everything is all right, and no way these directories can be viewed or accessed, but through ip I can see everything. http