[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Apache: How to prevent from accessing webdav through http?



Hi Philip,
>>>>> "Phillip" == Phillip Hofmeister <plhofmei@zionlth.org> writes:
thanks for your advice.

    Phillip> Greets,
    Phillip> On Tue, 08 Apr 2003 at 09:14:37AM +0200, stavel@brailcom.org wrote:
    >> NOTE: publish url is: https://localhost/webdav ... it goes to
    >> the www root
    >> 
    >> Is there some more fashionable solution, when I don't have to
    >> create symlink on the www root?

    Phillip> Make an alias using the Apache Alias directive?

But if I use Alias directive, I need to constraint source dir ... /var/www
(If I am not wrong :-). 
And because of that even normal access  (http://localhost)  will be prohibited.
        
        Alias /webdav /var/www
        <Directory /var/www>
                DAV On
                RewriteEngine on
                RewriteCond %{HTTPS} !=on
                RewriteRule     *. - [F]
        </Directory>
        
       
    Enjoy spring weather,
-- 
      Jan Stavel 



Reply to: