virtual host configuration with user directories

virtual host configuration with user directories

Post by Frank Thoma » Sat, 17 Feb 2001 09:55:41



I know this has got to be easy to fix but I am having a hard finding the
answer.  We upgraded to BSDi 4.2 and thus the new apache and now all of the
user dirs are only available if you goto
http://www.server.com/~user/index.html instead of previously
http://www.server.com/~user/

in the error_log it enters
client denied by server configuration: /home/a/user/.html
I have seen some references to fix this...it has something to do with the
<Files> parameters....?
our DocumentRoot is set to the correct files....

if anyone has an httpd.conf file for a server that has multiple user dirs
that have their personal homepages set in .html dir I would greatly
appreciate being able to see it (you can email me off list if you prefer)

TIA
Frank

 
 
 

virtual host configuration with user directories

Post by David Efflan » Sat, 17 Feb 2001 12:38:29



>I know this has got to be easy to fix but I am having a hard finding the
>answer.  We upgraded to BSDi 4.2 and thus the new apache and now all of the
>user dirs are only available if you goto
>http://www.server.com/~user/index.html instead of previously
>http://www.server.com/~user/

>in the error_log it enters
>client denied by server configuration: /home/a/user/.html
>I have seen some references to fix this...it has something to do with the
><Files> parameters....?
>our DocumentRoot is set to the correct files....

>if anyone has an httpd.conf file for a server that has multiple user dirs
>that have their personal homepages set in .html dir I would greatly
>appreciate being able to see it (you can email me off list if you prefer)

The first thing I would check is permission of user's home dir (at least
701) and ".html" dir.  Or it could be the dot in ".html" that is causing
the problem.  If configure for the usual public_html instead, does that
work for a user's public_html dir?

However, also check your <Directory> paths and note that * does NOT match
'/' (another poster made that mistake).  So if something is defined for
/home/*/.html that would NOT match /home/*/*/.html

--

http://www.autox.chicago.il.us/  http://www.berniesfloral.net/
http://cgi-help.virtualave.net/  http://hammer.prohosting.com/~cgi-wiz/

 
 
 

virtual host configuration with user directories

Post by Max Dittric » Sat, 17 Feb 2001 21:36:36



> I know this has got to be easy to fix but I am having a hard finding the
> answer.  We upgraded to BSDi 4.2 and thus the new apache and now all of the
> user dirs are only available if you goto
> http://www.server.com/~user/index.html instead of previously
> http://www.server.com/~user/

That http://www.server.com/~user/ doesnt work doesnt matches my ideas
Im writing a few lines later, but your entries in the error_log does.

Quote:

> in the error_log it enters
> client denied by server configuration: /home/a/user/.html
> I have seen some references to fix this...it has something to do with the
> <Files> parameters....?

<Files> seems the right place to look at. The ".html" perfectly matches
any <Files ~ "^\.ht"> contexts. Look wether you have such a setting to
protect your AccessFiles .htaccess (.htpasswd). This files-directive can
bes considered to be buggy, as already mentioned at bugs.apache.org. If
theres a request for directory without trailing slash, apache evaluate
the requested resource as a file.

Best you keep the default "UserDir public_html" .

...max

 
 
 

1. how to prevent ftp users (virtual hosts) from going up one directory/escaping their own directory)

How do I prevent ftp users (virtual hosts) from going up one
directory/escaping their own directory? I don't want them to able to browse
through all the files on the server.

I tried chmodding several files but nothing seems to result into what I
want.

Listing of ftp user directory:

%ls -la
total 11
drwxr-xr-x 2 user user 512 Feb 6 21:02 .
drwxr-xr-x 6 root wheel 512 Feb 9 03:32 ..
-rw-r--r-- 1 user user 508 Feb 6 12:36 .cshrc
-rw------- 1 user user 406 Feb 6 22:21 .history
-rw-r--r-- 1 user user 592 Feb 6 12:36 .login
-rw-r--r-- 1 user user 160 Feb 6 12:36 .login_conf
-rw------- 1 user user 371 Feb 6 12:36 .mail_aliases
-rw-r--r-- 1 user user 331 Feb 6 12:36 .mailrc
-rw-r--r-- 1 user user 722 Feb 6 12:36 .profile
-rw------- 1 user user 276 Feb 6 12:36 .rhosts
-rw-r--r-- 1 user user 832 Feb 6 12:36 .shrc
lrwx------ 1 root user 32 Feb 8 19:55 www ->
/usr/local/www/vhosts/domain.com

Regards,

Digiman

2. Configure Apache to allow directories to be downloaded -- not just files

3. Virtual Hosting w/ user directories.

4. setting up a SERIAL port on a SUN

5. Virtual hosts and users home directories

6. Problem with ethernetcard??

7. Apache 1.3b2: Default Host and all virtual hosts serve only first virtual hosts pages?

8. Linux/Solaris CPIO

9. FrontPage virtual hosting, removal or reset of virtual host

10. : How to prevent one named virtual host from "seeing" another virtual hosts files ?

11. Mixing Apache Name Based Virtual Hosts and SSL Virtual Host

12. For Discussion: web virtual hosting vs mail virtual hosting

13. Apache: Virtual host configuration is 'forgotten' after some time?