[H-GEN] Apache Question

Joel Michael joel at jmichael.bpa.nu
Thu Aug 7 08:45:10 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

On Thu, 2003-08-07 at 21:36, Andrew Pullin wrote:
> As far as I can tell it only affects the bits that are automagically set
> with the GUI Apache setup. I can find no other way of changing the
> httpd.conf file otherwise.
> 
For stuff like this, your favourite text editor applied to
/etc/httpd/conf/httpd.conf will work wonders.

> That is what I tried first and it didn't work. I also tried
> /home/*/*/public_html because I also have a /home/users/ directory. The
> Apache help files suggested this way to set it up.
> 
I'm sure that just public_html works fine, but you're right in the
apache docs suggesting /home/*/public_html would also work.  I'd
probably suggest just public_html as Apache will work out the user's
home directory, and automatically apply it as the path (or, at least
that's the theory)

> That was a default setting and from the top of my head is unnecessary unless
> you want that to be the default document served in a directory. In this case
> I DON'T want it served, I want to be able to list the contents of the
> directory.
> 
I can tell you that it is NOT the default setting.  I'm not sure of the
effect of not setting DirectoryIndex, but the easiest way to do this is
to just not put a DirectoryIndex file in a directory.  Also, you will
need to set Options Indexes in the <Directory> statement for the path of
the public_html directories, e.g.

<Directory /home/admin/*/public_html>
  Options Indexes
  AllowOverride None
  Allow from from All
</Directory>

> Actually that is a default setting also. I haven't changed it at all. I
> don't have a Virtual Host, so it shouldn't make a difference.
> 
I know for a fact that this is not a default setting.  The default comes
with no VirtualHosts defined, they are all commented out.  At least it
was like that on the last copy of Red Hat 9 that I installed a couple of
months ago.

Also, if my understanding of virtual hosts is correct, the settings here
will override ones set further up in the config file.  I could be wrong,
tho.

> Those were straight out of the Apache pages. My error logs pointed at the
> wrong directory until I did it that way. My deault user directories are
> /home/admin/ and /home/users/.
> 
ok, for example take http://yourserver/~andrew - is the home directory
for andrew /home/andrew, /home/admin/andrew or /home/users/andrew
("getent passwd andrew" will show you the entry from /etc/passwd,
containing the home directory in the 6th field)?  Or, is /home/admin and
/home/users the home directory of a user called admin and users?  Or
something else?

> Again, I have changed very little of the default httpd.conf file. All other
> references to Directory etc were done that way so I just did it that way in
> case it was done for a reason. I have only actually changed three things in
> the httpd.conf file: the server name; UserDir and the last two Directory
> constructs. All the rest is default.
> 
I can tell you that you've changed a lot of the default httpd.conf file,
at least the one I remember that shipped with Red Hat 9.  You may want
to compare the changes in your httpd.conf to the one as shipped by Red
Hat, without being beaten with apacheconfig.

Hope this helps!
-- 
Joel Michael
This Linux guru needs work! http://jmichael.bpa.nu/resume.html

A. Because we read from left to right and from top to bottom!
Q. Why should I place my response below the quoted text?


--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list