Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- fichier /etc/apache2/freedom.d/72_mod_dav.conf:
- BrowserMatch "Microsoft-WebDAV-MiniRedir/5.1.2600" redirect-carefully
- NameVirtualHost *:80
- <VirtualHost 172.20.102.165:80>
- #Classic Authentificated Dav Server
- ServerName webdav_server
- DocumentRoot /usr/share/what/dav
- <Directory /usr/share/what/dav/>
- DirectoryIndex zou679__e.php
- # AcceptPathInfo On
- <Files ~ "zou679__e.php">
- AuthType Basic
- AuthName 'Freedom Connection'
- AuthBasicProvider pam
- AuthnPAMService httpd
- Require valid-user
- </Files>
- RewriteEngine On
- #RewriteBase /dav
- RewriteCond %{REQUEST_URI} !.*zou679__e.php$
- RewriteRule ^(.*)$ /zou679__e.php?filename=$1 [PT,L]
- </Directory>
- </VirtualHost>
- <VirtualHost 172.20.102.165:80>
- #Virtual Dav Server (Authenticate by session numbers)
- ServerName freedav_server
- DocumentRoot /usr/share/what/dav
- <Directory /usr/share/what/dav/>
- DirectoryIndex zou679__e.php
- # AcceptPathInfo On
- Allow from All
- RewriteEngine On
- RewriteCond %{REQUEST_URI} !.*zou679__e.php$
- RewriteRule ^(.*)$ /zou679__e.php?filename=$1 [PT,L]
- </Directory>
- </VirtualHost>
- ============================================================================
- fichier pg_services.conf :
- [service-core]
- host=127.0.0.1
- port=5432
- user=freedomrole
- password=secret
- dbname=anakeen
- [service-freedom]
- host=127.0.0.1
- port=5432
- user=freedomrole
- password=secret
- dbname=freedom
- [default-webdav]
- host=127.0.0.1
- port=5432
- user=freedomrole
- password=secret
- dbname=default-webdav
- =======================================================================
- fichier /usr/share/what/ DAV/DAV_init.php
- global $app_const;
- $app_const= array(
- "INIT" => "yes",
- "VERSION" => "0.6.1-0",
- "FREEDAV_SERVEUR" =>array("val"=>"",
- "descr"=>N_("address of the webdav server for freedav"),
- "global"=>"Y"),
- "WEBDAV_SERVEUR" =>array("val"=>"",
- "descr"=>N_("address of the webdav server for authenticate server"),
- "global"=>"Y"),
- "WEBDAV_DB" =>array("val"=>"service=default-webdav",
- "descr"=>N_("database access for webdav"),
- "global"=>"Y"),
- "WEBDAV_ROOTID" =>array("val"=>"9",
- "descr"=>N_("folder identificator for root"),
- "global"=>"Y")
- );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement