Vote count:
0
I am using apache 2.2.22 with debian stable as the server.
I have created virtual hosts for a webdav share using ssl which are hosted on both a http and a https domain. I have two problems [i posted both here since i think they both relate to a faulty config file, if this is not allowed feel free to remove problem #2].
1) I can access all of the folders via a web browser [after authentication prompt] but when i connect with netdrive2 from a windows client symlinks are not shown. Standard folders and files however are shown under netdrive2. This may be the same with a linux client but i have not tested it, i would test with a mapped drive under windows but it won't connect [see problem #2].
Here is my config for the share:
<VirtualHost *:80>
ServerAdmin webmaster@mydomain.com
ServerName mydomain.com
ServerAlias *.mydoman.com
DirectoryIndex index.html
Options Indexes FollowSymLinks
DocumentRoot /var/www/html/http://ift.tt/11J8T5Q
ScriptAlias /cgi-bin/ /var/www/html/http://ift.tt/11J8T5S
<Location /cgi-bin>
Options +ExecCGI
</Location>
ErrorLog /var/www/html/http://ift.tt/1wcjsMl
CustomLog /var/www/html/http://ift.tt/1wcjsMn combined
</VirtualHost>
<VirtualHost *:443>
ServerAdmin webmaster@mydomain.com
ServerName mydomain.com
ServerAlias *.mydomain.com
SSLEngine on
SSLCertificateFile /etc/apache2/ssl/mykey.crt
SSLCertificateKeyFile /etc/apache2/ssl/mykey.key
DirectoryIndex index.html
Options Indexes FollowSymLinks
DocumentRoot /var/www/html/http://ift.tt/11J8T5Q
ScriptAlias /cgi-bin/ /var/www/html/http://ift.tt/11J8T5S
<Location /cgi-bin>
Options +ExecCGI
</Location>
ErrorLog /var/www/html/http://ift.tt/1wcjsMl
CustomLog /var/www/html/http://ift.tt/1wcjsMn combined
Alias /webdav /var/www/html/mydomain/htdocs
<Location /webdav-public>
Options Indexes FollowSymLinks
#AllowOverride None
DAV On
AuthType Basic
AuthName "webdav"
AuthUserFile /etc/apache2/webdav.password
Require valid-user
</Location>
</VirtualHost>
Permissions for root and webdav folder: Owner: root, create/delete; Group www-data, access; Other, none
Permissions for the public folder which the symlinks point to: Owner: myusername, create/delete; Group: www-data, access; Other, Access
(not sure if these are the best permissions or not)
I tried the 'allowoveride' but it had no effect so i #' it out.
2) When i try and map the webdrive share under windows explorer the authentication fails [yet it works with netdrive]; i have enable basic auth with regedit.
The syntax i have tried for mapping the drive:
net use P: http://ift.tt/11J8T5W /PERSISTENT:yes /USER:username password
I also tried to go directly to a folder within the share:
net use P: http://ift.tt/1wcjt2D /PERSISTENT:yes /USER:username password
Elsewhere i seen different syntax:
net use P: \\http://ift.tt/11J8UXs /USER:username password
Again, i tried to go directly to a folder with:
net use P: \\http://ift.tt/1wcjrb8 /USER:username password
I seen some example where the URL had "\" in fron ot it, i tried that and it did not work. I also tried a / before "Public" instead of \
I tried adding my self generated ssl cert for the web client within 'internet options' but nothing changed.
Can't access symlinks within webdav folders [using apache 2.2.22] or map drive for explorer [windows]
Aucun commentaire:
Enregistrer un commentaire