httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Boyle Owen" <Owen.Bo...@swx.com>
Subject RE: [users@httpd] UserDir over https
Date Fri, 18 Feb 2005 12:02:52 GMT


> -----Original Message-----
> From: Eimantas Vaiciunas [mailto:eimantas.vaiciunas@sc.vu.lt]
> Sent: Freitag, 18. Februar 2005 07:54
> To: users@httpd.apache.org
> Subject: [users@httpd] UserDir over https
> 
> 
> Hi list,
> 
> I'm having problems setting up user directories under https 
> virtual host. 
> 
> The situation: I have two http virtual hosts. One https 
> virtual host. One of 
> http vhosts share the same DocumentRoot and ServerName as 
> https vhost. And 
> now i'd like to set up user directories only for https vhost. 
> Here are my 
> vhost settings:
> 
> <VirtualHost xxx.xxx.xxx.xxx:80>
>         ServerName host1.domain.com
>         ServerAdmin admin@domain.com
>         DocumentRoot /path/to/doc/root1
>  ...
> </VirtualHost>
> 
> <VirtualHost xxx.xxx.xxx.xxx:80>
>         ServerName host2.domain.com
>         ServerAdmin admin@domain.com
>         DocumentRoot /path/to/doc/root2


It think the prblem is that you're picking up the default behaviour of
UserDir. This is equivalent to:

	UserDir public_html

That is, it matches your scheme. If you ewant userDir off in a Vhost,
you have to switch it off explicity, eg:

	UserDir disabled

Rgds,
Owen Boyle
Disclaimer: Any disclaimer attached to this message may be ignored. 

>  ...
> </VirtualHost>
> 
> <VirtualHost xxx.xxx.xxx.xxx:443>
>         ServerName host2.domain.com
>         ServerAdmin admin@domain.com
>         DocumentRoot /path/to/doc/root2
>         DirectoryIndex index.php index.html index.cgi
>         Include /etc/httpd/conf.d/httpd-ssl.conf
>         UserDir /path/to/user/*/public_html
>         <Directory /path/to/user/*/public_html>
>             AllowOverride All
>             Options MultiViews ExecCGI FollowSymlinks Indexes 
> SymLinksIfOwnerMatch IncludesNoExec
>             DirectoryIndex index.php
>             <Limit GET POST OPTIONS PROPFIND>
>                 Order allow,deny
>                 Allow from all
>             </Limit>
>             <LimitExcept GET POST OPTIONS PROPFIND>
>                 Order deny,allow
>                 Deny from all
>             </LimitExcept>
>         </Directory>
> </VirtualHost>
> 
> The result i'm expecting is that i would get 404 Error for 
> http://host2.domain.com/~user/, but 200 for 
> https://host2.domain.com/~user/. 
> Now result i'm getting is 403 for 
> http://host2.domain.com/~user/ if user has 
> no index file and normal 200 if user has index file. 
>The same 
> requests goes 
> to host1.domain.com.
> 
> 
> 
> 
> 
> 
> -- 
> Eimantas Vaičiūnas
> VU Skaičiavimo centras
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP 
> Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 
Diese E-mail ist eine private und persnliche Kommunikation. Sie hat
keinen Bezug zur B rsen- bzw. Geschftst tigkeit der SWX Gruppe. This
e-mail is of a private and personal nature. It is not related to the
exchange or business activities of the SWX Group. Le prsent e-mail est
un message priv  et personnel, sans rapport avec l'activit boursi re du
Groupe SWX.

This message is for the named person's use only. It may contain
confidential, proprietary or legally privileged information. No
confidentiality or privilege is waived or lost by any mistransmission.
If you receive this message in error, please notify the sender urgently
and then immediately delete the message and any copies of it from your
system. Please also immediately destroy any hardcopies of the message.
You must not, directly or indirectly, use, disclose, distribute, print,
or copy any part of this message if you are not the intended recipient.
The sender’s company reserves the right to monitor all e-mail
communications through their networks. Any views expressed in this
message are those of the individual sender, except where the message
states otherwise and the sender is authorised to state them to be the
views of the sender’s company. 



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message