SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
-
Oct 20, 2009, 08:21 #1
- Join Date
- Dec 2008
- Location
- Virtual Globe Trotter
- Posts
- 18
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
protecting web project files in a subdomain
So i have this subdomain (mysub.mysite.com) whose webroot folder is in sub/www/ inside mysite.com's webroot folder (as in public_html/sub/www).
If i place a completely new web project inside sub/ and i password protect important folders in sub/, say the lib/ or db/ or password/ (eeek!!!) folders, then is it safe from access from mysite.com? Say i try mysite.com/sub/lib/php/privatefile.php , will it be safe from access?
-
Oct 20, 2009, 12:12 #2
- Join Date
- May 2003
- Location
- Washington, DC
- Posts
- 10,653
- Mentioned
- 4 Post(s)
- Tagged
- 0 Thread(s)
You should make the new site a sibling of the public_html (or whatever your web root is) and configure your web server to serve that folder as a virtual site.
Bookmarks