Message Board -  Archive

[ Login ] [ Create Account ]
[ Board List ] [ View Board ] [ Post Reply ]
  Author  Subject: Re: Apache Config

Posted on 12-16-2001 11:10 p.m. ET  reply

Original Poster: "Mark W. Krentel" <>

> I am having a slight problem with virtual domain configuration. In the past, I
> have placed all of my web pages in the /var/www directory. Recently, a few
> friends have asked to post pages on my server. I would like to point there
> domain names to a directory in there home directoy (rather than give people
> ftp access to my main web space...) I set up my Vhosts file to point the
> domain names to the appropriate directorys in each users home dir, and used
> chmod 755 to set the directory permissions,

Apache is highly configurable, so it's impossible to pinpoint the
problem without a lot more details about what you're trying to do,
your domain names, httpd.conf file, etc.

I see two issues here. By default, Apache is pretty well set up for
user directories, but probably not perfectly. Check that "httpd -l"
includes mod_userdir. Check that httpd.conf has a UserDir directive.
Check all the <Directory> sections that their Allow, Deny, Options
directives allow access. Remember, the public_html directories are
outside the normal DocumentRoot, so the access control is probably
different. Maybe you have a symlink issue (which is very common).

Secondly, I don't know how you're trying to set up Vhosts (do you mean
<VirtualHost>). That goes well beyond the default installation. But
I would first verify that UserDir works without any <VirtualHost>.

Apache has excellent online documentation, including sections on
UserDir and <VirtualHost>. Syrlug has a local copy, or you could go
to Apache's home page.

> but for some reason I am getting a
> "You do not have access to / on this server" error when I try to access the page.

What shows up in error_log when you try to access http://your.machine/~user?
Apache's error messages are usually pretty informative about why it
couldn't serve a request.

P.S. "there" means location, "their" means ownership.


< Previous 1 Next >

Site Contents