Hi all.
I've been working on this for hours and haven't got it work yet. I wanted to create a VirtualHost with a DocumentRoot that points to a directory in a user account. The idea is that user can SMB in and simply plop the files into their directory to get them hosted. (it's for my wife, the easier the better)
My initial attempt at a VirtualHost...
<VirtualHost user.hostname.ca:443>
ServerAdmin
webmaster@user.hostname.ca
DocumentRoot /home/user/www
ServerName user.hostname.ca:443
ServerAlias wwwuser.hostname.ca
ErrorLog logs/user.hostname.ca-error_log
CustomLog logs/user.hostname.ca-access_log common
</VirtualHost>
...but restarting httpd results in the following Warning....
Starting httpd: Warning: DocumentRoot [/home/user/www] does not exist
...I know this is a permissions problem. I've tried everything I can think of. I added the apache user to my user's group, adding/changing permissions, etc... No luck. Any suggestions?
Secondly, I attempted a VirtualHost with a Directory defined. See the following...
<VirtualHost user.hostname.ca:443>
ServerAdmin
webmaster@user.hostname.ca
DocumentRoot /
ServerName user.hostname.ca:443
ServerAlias
www.user.hostname.ca
ErrorLog logs/user.hostname.ca-error_log
CustomLog logs/user.hostname.ca-access_log common
<Directory "/home/user/www">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
This doesn't make Apache throw a warning, BUT I can't access anything in /home/user/www/, I get a HTTP 404 error in my browser. (object not found)
You now basically know what I'm trying to accomplish, if either VirtualHost approach is a waste of time when trying to host from a user's home, let me know if it's possible.
If I can sort this out, it's on to printer sharing. ;-)
Thanks!!!
- utow