[H-GEN] Apache Question
Andrew Pullin
andrew at hotspurbgc.com.au
Thu Aug 7 07:36:30 EDT 2003
[ Humbug *General* list - semi-serious discussions about Humbug and ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]
Hi There,
> Ok, let's go through this.
>
> > # Generated automatically... if you edit manually, the changes will be
> lost
> > # the next time you run "apacheconfig".
>
> uh-oh. This may explain some of the brain damage later on.
>
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.
> > <IfModule mod_userdir.c>
> > UserDir /home/admin/*/public_html
> > </IfModule>
> >
> Ok, I'm pretty sure this is meant to be just public_html, not
> /home/admin/*/public_html.
>
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.
> > DirectoryIndex
> >
> This should probably be:
>
> DirectoryIndex index.html
>
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.
> at least.
> > <VirtualHost *>
> > ServerSignature email
> > DirectoryIndex index.php index.html index.htm index.shtml
> > LogLevel warn
> > HostNameLookups off
> > </VirtualHost>
> >
> Er, this doesn't look right. I'd probably completely remove this if
> you're not actually using it, and move the configuration directives
> specified in this virtual host back up into the main configuration file
> (or just remove the VirtualHost lines, but you may be in for a world of
> hurt down the track when you change the config directive at the top of
> the file and it doesn't work properly)
>
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.
> > <Directory /home/admin/*/public_html>
> > AllowOverride None
> > Allow from from All
> > </Directory>
> > <Directory /home/admin/*/public_html/cgi-bin/>
> > Options ExecCGI
> > SetHandler cgi-script
> > </Directory>
> >
> Your home directories are /home/admin/<username>, right? If not (no
> version of Red Hat that I know of does it this way by default), then
> change the above 2 paths to be the path of a user's home directory.
> E.g. Red Hat usually puts home directories under /home, so you would
> want /home/*/public_html and /home/*/public_html/cgi-bin
>
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/.
> And I'm sure you have double from's in your Allow From config
> statements. I'm also pretty sure that for every Allow statement, you
> need a Order statement.
>
> Hope that helps. The Apache manual really is very good.
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.
Anyhow, still no luck, but we will keep trying.
Cheers!
Andrew
--
* 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