--- 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/
