Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Setting Up Webdav with Apache2

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
rajl
Apprentice
Apprentice
Posts: 287
Joined: Wed Sep 25, 2002 12:39 am

Setting Up Webdav with Apache2

  • Quote

Post by rajl » Wed Sep 29, 2004 4:09 pm

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.
Top
Beau
n00b
n00b
Posts: 41
Joined: Sat Aug 23, 2003 9:57 am
Location: Hasselt/Leuven, Belgium

  • Quote

Post by Beau » Mon Oct 11, 2004 4:42 pm

bounce
Same question, same reason.

Did you find a solution yet?
Top
bumpus
n00b
n00b
User avatar
Posts: 64
Joined: Fri Feb 14, 2003 5:19 pm
Location: Cedar Rapids, IA, USA
Contact:
Contact bumpus
Website

  • Quote

Post by bumpus » Mon Oct 11, 2004 9:19 pm

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: Select all

<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: Select all

<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.
Top
Crimson Rider
Guru
Guru
User avatar
Posts: 462
Joined: Mon Jun 23, 2003 8:45 pm
Location: Delft, the Netherlands

  • Quote

Post by Crimson Rider » Mon Jan 17, 2005 11:14 am

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
Top
bumpus
n00b
n00b
User avatar
Posts: 64
Joined: Fri Feb 14, 2003 5:19 pm
Location: Cedar Rapids, IA, USA
Contact:
Contact bumpus
Website

  • Quote

Post by bumpus » Mon Jan 17, 2005 4:49 pm

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.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic