I'm still learning about apache (we never stop learning though...) I know that I can lock folders with a click in the cpanel, but to me that's like using a calculator while you were supposed to be learning the elements and processes of calculations. I want to understand this from the base up. My host/server is on Hostmonster. I read some good recommendations and so far it has worked out well.
I'm trying to understand where I should be making the Public_Html pages and what is the difference in www access? Do they mirror each other? Change one and the other changes, as well with synchronized files? Should I be writing to my document root home folder for everything? The one that's outside the public html and www? Or should I edit private things from the document root?
It's a little hard to explain, but this is what I want to accomplish. Here's the current code piece that I have, but this just denies access from the web to everyone, of course, who has the credentials. That's fine while I am working on the site, but the configuration needs to be open in order to let the public, registered users, and superusers the correct access. I also currently have a robot.txt file blocking any bot access. I have a question about that, but I'll put it in a separate post.
# password protection allowing directory and file access AuthType Basic Authname "Restricted Area" AuthUserFile /home/masterdirectorypath/ .htpasswd AuthGroupFile /dev/null Require Valid-User SetEnvIf Request_URI "path/to/directory/)$" allow SetEnvIf Request_URI "path/to/file.php)$" allow Order allow,deny Allow from env=allow Satisfy any
Where do I place the file in order to give everyone/bot access to ONLY the home landing page and NOT any directory listings? Basically, there will be links on this page giving direction on how to proceed. I want the page to say that any link they click from this first page requires member registration? I'll have a single home landing page for the registered members once they are confirmed, with links to other areas. No bot access past the front page. Once they are registered, I want to give specific user/group access to a specific access configuration map.
For example, Bob signs up as a class 1 member (of which he is not aware of the category group he has been placed in.) I want him to have access to the 1st and general material forum. Then Joe signs up and I want him to be in a group that has access to the 1st forum AND a second specific topic forum that the group one won't be able to see.
The first forum is just going to be general topics which people can feel free to discuss openly. The second forum is for Mental Health and Eating Disorder Support. I want to protect people's privacy so that they feel safe writing about their feelings openly. Also, in my case, I want to be able to know that like my Dad is not reading about my personal issues, for example, so he would be placed in group one only.
And I definitely don't want any of the forums, blogs, etc. indexed by bots, so I need to put a robot.txt file in the correct place. I am guessing that I will have to write specific bot files at a certain level directory.
I hope this makes sense. I understand what I want, just not how to set it up. The apache site was helpful, but doesn't get as specific as I need.
Thank you and I look forward to your suggestions!