A couple of Apache questions...
Greetings all - first time poster here!
I have a couple of questions that I've been attempting to resolve. Hopefully I can get some assistance on this board. So, here goes:
Question 1. I have installed Apache 2.0 on my Redhat box. What is the proper setup for the permissions and group of the /www and/or /html directories? I couldn't find any documentation on this issue. (I want to be able to allow some local users access at least to the /html directory for FTP and "put" purposes as well as non-local users being able to view the HTML pages in /html.) Basically, what I did was create a new group, "html," and changed the /www and /html directories to this group. I then chmoded the permissions of these directories to 771. First, was this the best way possible, as far as allowing local users access to these directories? Also, is 771 really the best permissions to use in this case? Am I taking the wrong direction for my purposes? I really like to find out what the standard method is for setting up the Apache 2.0 directories, as far as permissions and groups are concerned.
Also, do I really need to allow access for the /www, as opposed to the /html directory? (The full pathway is /var/www/html.) I come from more of an MS background (please forgive me!), so I sometimes get permission inheritance mixed up in my head, and whether or not a directory inherit's the parent directory's permissions.
Question 2: I created a test document, using at first Netscape's HTML editor. I made a very basic page, but without realizing it, the editor had put the version information, "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">," on the top of the page's HTML code. When I went to a local machine to view the page, which was a basic "Hello World" page, I could see the HTML code as opposed to the simple text message. (The page should have simply read as "Hello World" as opposed to seeing the actual HTML code.) After looking over everything, I looked at the page's HTML and noticed the DOCTYPE at the top. I then decided to create a very simple page using a text editor, and voila!, the page worked. The only difference between this page and the first one is that it was missing the DOCTYPE information. For some reason, when the HTML page had the "<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">," Apache was not interpreting the HTML when this DOCTYPE was present.
Why is this? Is there a configuration I am missing in the httpd.conf?
I hope these questions make sense of some sort, and I apologize if I had made any errors. Any help would be highly appreciated!
Thanks in advance,
~Ivan
|