Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Setting Up Webdav with Apache2
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
rajl
Apprentice
Apprentice


Joined: 25 Sep 2002
Posts: 287

PostPosted: Wed Sep 29, 2004 4:09 pm    Post subject: Setting Up Webdav with Apache2 Reply with quote

Ok,

I have Apache 2, and I want to turn on the WebDAV features, mainly so I can publish my calendars from iCal to the web.

I have -D DAV -D DAV_FS listed in my modules includes. I also have ssl enabled and working, and want to only enable WebDav connections over ssl.

I also have user directories enabled. Preferably, I'd want each user on the system to be able to publish to ~username/public_html and for the general public to be able to read html from there as well.

How is the best way to do this? The information on the forums is sketchy at best, and the help is not really all that detailed.
_________________
-Rajl

-----------------------------------------------------------
It's easy to be brave once you consider the alternatives.
Back to top
View user's profile Send private message
Beau
n00b
n00b


Joined: 23 Aug 2003
Posts: 41
Location: Hasselt/Leuven, Belgium

PostPosted: Mon Oct 11, 2004 4:42 pm    Post subject: Reply with quote

bounce
Same question, same reason.

Did you find a solution yet?
Back to top
View user's profile Send private message
bumpus
n00b
n00b


Joined: 14 Feb 2003
Posts: 64
Location: Cedar Rapids, IA, USA

PostPosted: Mon Oct 11, 2004 9:19 pm    Post subject: Reply with quote

I did this and it works pretty well. I have phpicalendar installed in /home/httpd/calendar and I use WebDAV to put my calendars into /home/httpd/calendar/calendars with Mozilla Sunbird. SSL and a password are required to access the calendar by either a browser or WebDAV at https://calendar.my.domain.

The things you will need to do are:

1) Edit /etc/conf.d/apache2 and add "-D DAV -D DAV_FS" to the apache2 opts line.

2) Edit /etc/apache2/conf/commonapache2.conf and add a section similar to the following:
Code:

<Directory /home/httpd/calendar>
        Options -Indexes FollowSymLinks MultiViews
        AllowOverride All
        Dav On
        BrowserMatch "Microsoft Data Access Internet Publishing Provider" redire
ct-carefully
        AuthType Basic
        AuthName Calendar.my.domain
        AuthUserFile /home/httpd/.htpasswd-calendar
        require valid-user
        <IfModule mod_access.c>
                Order allow,deny
                Allow from all
        </IfModule>
</Directory>


3) Add the following to /etc/apache2/conf/vhosts/vhosts.conf:
Code:
<VirtualHost *:80>
ServerName calendar.my.domain
ServerAlias *.calendar.calendar.my.domain
Redirect / https://Calendar.my.domain/
</VirtualHost>
Include conf/vhosts/ssl.calendar.my.domain.conf

This will redirect all requests to http://calendar.my.domain to the corresponding address at https://calendar.my.domain

4) Create the ssl.calendar.my.domain.conf file. There should be an example file in the conf/vhosts directory. Just copy it to a new file and change the hostname and Document root to suit your needs and you should be set.
_________________
-------------
Just because I can.
Back to top
View user's profile Send private message
Crimson Rider
Guru
Guru


Joined: 23 Jun 2003
Posts: 462
Location: Delft, the Netherlands

PostPosted: Mon Jan 17, 2005 11:14 am    Post subject: Reply with quote

This may be a no brainer, but how do you configure iPhpCalender to do this ?

I can't find anywhere it the docs how to get that to work.
_________________
Code, justify, code - Pitr Dubovich
Back to top
View user's profile Send private message
bumpus
n00b
n00b


Joined: 14 Feb 2003
Posts: 64
Location: Cedar Rapids, IA, USA

PostPosted: Mon Jan 17, 2005 4:49 pm    Post subject: Reply with quote

I didn't have to do anything special with phpicalendar to get this to work. All I did was untar the code into my /home/httpd/calendar directory and put my calendar files into the /home/httpd/calendar/calendars directory and it just worked.

What part of phpicalendar are you having trouble with?
_________________
-------------
Just because I can.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum