Re: [users@httpd] Question about mod_dav in Apache2(Centos)
Matt: I've been testing DAV with DAVfs for a little while now. Use my config below as you see fit. The below config is just a template I used from compiling Apache2 from source. Lastly, the config below is a file named httpd-dav.conf. Enjoy. DavLockDB "/opt/apache2/var/DavLock" Alias /uploads "/opt/apache2/uploads" Dav On Order Allow,Deny Allow from all AuthType Digest AuthName DAV-upload # You can use the htdigest program to create the password database: # htdigest -c "/opt/apache2/user.passwd" DAV-upload admin AuthUserFile "/opt/apache2/user.passwd" AuthDigestProvider file # Allow universal read-access, but writes are restricted # to the admin user. require user admin 2011/3/10 zMatthew > I configured Apache2 to allow "PUT" method on a directory, > >- /usr/local/apache/DAVLock is writeable by Apache > > >- "LoadModule dav_module modules/mod_dav.so" is uncommented >- "LoadModule dav_module modules/mod_dav_fs.so" is uncommented > > > I just added 2 lines in default httpd.conf > > *DAVLockDB /usr/local/apache/DAVLock > * > > *DAV On* > > > However, PUT method still isn't seen via " OPTIONS / HTTP/1.0" > Could someone give me a hand? thanks > > -- Ezra Taylor
RE: [users@httpd] Question about mod_dav in Apache2(Centos)
Apach's error_log doesn't exist any relative info. My httpd.conf is as follows, =BEGIN== ServerTokens OS ServerRoot "/etc/httpd" PidFile run/httpd.pid Timeout 120 KeepAlive Off MaxKeepAliveRequests 100 KeepAliveTimeout 15 StartServers 8 MinSpareServers5 MaxSpareServers 20 ServerLimit 256 MaxClients 256 MaxRequestsPerChild 4000 StartServers 2 MaxClients 150 MinSpareThreads 25 MaxSpareThreads 75 ThreadsPerChild 25 MaxRequestsPerChild 0 Listen 80 LoadModule auth_basic_module modules/mod_auth_basic.so ... LoadModule dav_module modules/mod_dav.so ... LoadModule dav_fs_module modules/mod_dav_fs.so ... LoadModule version_module modules/mod_version.so Include conf.d/*.conf User apache Group apache ServerAdmin root@localhost UseCanonicalName Off DocumentRoot "/var/www/html" Options FollowSymLinks AllowOverride None Options Indexes FollowSymLinks AllowOverride None Order allow,deny Allow from all UserDir disable DirectoryIndex index.html index.html.var AccessFileName .htaccess Order allow,deny Deny from all TypesConfig /etc/mime.types DefaultType text/plain MIMEMagicFile conf/magic HostnameLookups Off ErrorLog logs/error_log LogLevel warn LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined ... CustomLog logs/access_log combined ServerSignature On Alias /icons/ "/var/www/icons/" Options Indexes MultiViews AllowOverride None Order allow,deny Allow from all DAVLockDB /var/lib/dav/lockdb ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" AllowOverride None Options None Order allow,deny Allow from all IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip ... AddIcon /icons/blank.gif ^^BLANKICON^^ DefaultIcon /icons/unknown.gif ReadmeName README.html HeaderName HEADER.html IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t AddLanguage ca .ca ... AddLanguage zh-TW .zh-tw LanguagePriority en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN zh-TW ForceLanguagePriority Prefer Fallback AddDefaultCharset UTF-8 AddType application/x-compress .Z AddType application/x-gzip .gz .tgz AddHandler type-map var AddType text/html .shtml AddOutputFilter INCLUDES .shtml Alias /error/ "/var/www/error/" AllowOverride None Options IncludesNoExec AddOutputFilter Includes html AddHandler type-map var Order allow,deny Allow from all LanguagePriority en es de fr ForceLanguagePriority Prefer Fallback BrowserMatch "Mozilla/2" nokeepalive ... BrowserMatch "^Dreamweaver-WebDAV-SCM1" redirect-carefully DAVLockDB /usr/local/apache/DAVLock DAV On END=========== From: bennett.t...@con-way.com To: users@httpd.apache.org Date: Thu, 10 Mar 2011 07:46:55 -0800 Subject: RE: [users@httpd] Question about mod_dav in Apache2(Centos) “DAV On” can be used within a or within a or */ So, your problem is elsewhere. Does your g provide any clues…??? From: zMatthew [mailto:mathewz...@hotmail.com] Sent: Thursday, March 10, 2011 12:37 AM To: users@httpd.apache.org Subject: RE: [users@httpd] Question about mod_dav in Apache2(Centos) My httpd.conf doesn't exist , so I added the following the 3 lines in the file. DAV On Unfortunately, "PUT" method still isn't seen via "OPTIONS / HTTP/1.0". Thanks > From: n...@webthing.com > Date: Thu, 10 Mar 2011 06:15:52 + > To: users@httpd.apache.org > Subject: Re: [users@httpd] Question about mod_dav in Apache2(Centos) > > > On 10 Mar 2011, at 05:08, zMatthew wrote: > > > I configured Apache2 to allow "PUT" method on a directory, > > DAV doesn't work with Directories. Use . > > -- > Nick Kew > > Available for work, contract or permanent > http://www.webthing.com/~nick/cv.html > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org >
RE: [users@httpd] Question about mod_dav in Apache2(Centos)
"DAV On" can be used within a or within a or */ So, your problem is elsewhere. Does your apache_error_log provide any clues...??? From: zMatthew [mailto:mathewz...@hotmail.com] Sent: Thursday, March 10, 2011 12:37 AM To: users@httpd.apache.org Subject: RE: [users@httpd] Question about mod_dav in Apache2(Centos) My httpd.conf doesn't exist , so I added the following the 3 lines in the file. DAV On Unfortunately, "PUT" method still isn't seen via "OPTIONS / HTTP/1.0". Thanks > From: n...@webthing.com > Date: Thu, 10 Mar 2011 06:15:52 +0000 > To: users@httpd.apache.org > Subject: Re: [users@httpd] Question about mod_dav in Apache2(Centos) > > > On 10 Mar 2011, at 05:08, zMatthew wrote: > > > I configured Apache2 to allow "PUT" method on a directory, > > DAV doesn't work with Directories. Use . > > -- > Nick Kew > > Available for work, contract or permanent > http://www.webthing.com/~nick/cv.html > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org >
RE: [users@httpd] Question about mod_dav in Apache2(Centos)
My httpd.conf doesn't exist , so I added the following the 3 lines in the file. DAV On Unfortunately, "PUT" method still isn't seen via "OPTIONS / HTTP/1.0". Thanks > From: n...@webthing.com > Date: Thu, 10 Mar 2011 06:15:52 + > To: users@httpd.apache.org > Subject: Re: [users@httpd] Question about mod_dav in Apache2(Centos) > > > On 10 Mar 2011, at 05:08, zMatthew wrote: > > > I configured Apache2 to allow "PUT" method on a directory, > > DAV doesn't work with Directories. Use . > > -- > Nick Kew > > Available for work, contract or permanent > http://www.webthing.com/~nick/cv.html > > > - > The official User-To-User support forum of the Apache HTTP Server Project. > See http://httpd.apache.org/userslist.html> for more info. > To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org >" from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@httpd.apache.org >
Re: [users@httpd] Question about mod_dav in Apache2(Centos)
On 10 Mar 2011, at 05:08, zMatthew wrote: > I configured Apache2 to allow "PUT" method on a directory, DAV doesn't work with Directories. Use . -- Nick Kew Available for work, contract or permanent http://www.webthing.com/~nick/cv.html - The official User-To-User support forum of the Apache HTTP Server Project. See http://httpd.apache.org/userslist.html> for more info. To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org