I tried adding the / after /home/rod/html and it didn't do anything 
different (still said the directory doesn't exist)

My default config file has userdir disabled.
Is this a problem? I am not trying to use www.server.com/~rod

I am trying to point www.rodsdomain.com to a directory under 
his /home.

I did notice when I tried pointing to /home/rod instead 
of /home/rod/html that I did not get the "directory doesn't exist" 
error message, but it still will not display a dummy index page I 
placed in /home/rod

All vhosts are working great as long as they are in directories 
under /var/www/html.

Thanks for your help

--- In [email protected], Jaqui Greenlees 
<[EMAIL PROTECTED]> wrote:
> 
> --- dirtracer149 <[EMAIL PROTECTED]> wrote:
> > I have apache set up and it is working fine except
> > for one part.
> > 
> > I have several virtual servers set up and pointing
> > to document roots 
> > in the /var/html/servername directories - these all
> > work fine.
> > 
> > I am trying to set one up which points to a
> > directory under a users 
> > home space as follows:
> > 
> > <VirtualHost _default_:80>
> > DocumentRoot /home/rod/html
> > ServerName www.rodswebsite.com
> > ServerAlias rodswebsite.com
> > DirectoryIndex index.html index.htm
> > </VirtualHost>
> > 
> > I keep getting an error message that /home/rod/html
> > does not exist.
> > 
> > I know that it exists, any ideas?
> > 
> 
> try adding / to the server root for the vhost.
> "
> <VirtualHost _default_:80>
> DocumentRoot /home/rod/html/
> ServerName www.rodswebsite.com
> ServerAlias rodswebsite.com
> DirectoryIndex index.html index.htm
> </VirtualHost>
> "
> instead of
> "
> <VirtualHost _default_:80>
> DocumentRoot /home/rod/html
> ServerName www.rodswebsite.com
> ServerAlias rodswebsite.com
> DirectoryIndex index.html index.htm
> </VirtualHost>
> "
> 
> also, add an index page ( if not there ) apache2
> doesn't like empty directories.
> 
> does your apache root url work?
> try browsing to it through ip number instad of
> localhost.
> copy any files from /home/rod/html/
> to 
> /home/rod/public_html/
> then try going to 127.0.0.1/~rod
> if that works then it's the vhost container causing
> the problem.
> as apache2 has userdir enabled by default, so if it
> works then apache is working right.
> ( permissions not important for public_html directory,
> system defaults of rwx r r work. )
> [ world readable owner writable ]
> 
> 
> 
_____________________________________________________________________
_ 
> Post your free ad now! http://personals.yahoo.ca




To unsubscribe from this list, please email [EMAIL PROTECTED] & you will be 
removed. 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/LINUX_Newbies/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to