Advertisement
Guest User

Untitled

a guest
Jul 11th, 2018
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.49 KB | None | 0 0
  1. fichier /etc/apache2/freedom.d/72_mod_dav.conf:
  2.  
  3. BrowserMatch "Microsoft-WebDAV-MiniRedir/5.1.2600" redirect-carefully
  4. NameVirtualHost *:80
  5.  
  6. <VirtualHost 172.20.102.165:80>
  7. #Classic Authentificated Dav Server
  8. ServerName webdav_server
  9. DocumentRoot /usr/share/what/dav
  10. <Directory /usr/share/what/dav/>
  11. DirectoryIndex zou679__e.php
  12. # AcceptPathInfo On
  13. <Files ~ "zou679__e.php">
  14. AuthType Basic
  15. AuthName 'Freedom Connection'
  16. AuthBasicProvider pam
  17. AuthnPAMService httpd
  18. Require valid-user
  19. </Files>
  20. RewriteEngine On
  21. #RewriteBase /dav
  22. RewriteCond %{REQUEST_URI} !.*zou679__e.php$
  23. RewriteRule ^(.*)$ /zou679__e.php?filename=$1 [PT,L]
  24. </Directory>
  25. </VirtualHost>
  26.  
  27.  
  28. <VirtualHost 172.20.102.165:80>
  29. #Virtual Dav Server (Authenticate by session numbers)
  30. ServerName freedav_server
  31. DocumentRoot /usr/share/what/dav
  32. <Directory /usr/share/what/dav/>
  33. DirectoryIndex zou679__e.php
  34. # AcceptPathInfo On
  35. Allow from All
  36. RewriteEngine On
  37. RewriteCond %{REQUEST_URI} !.*zou679__e.php$
  38. RewriteRule ^(.*)$ /zou679__e.php?filename=$1 [PT,L]
  39. </Directory>
  40. </VirtualHost>
  41.  
  42. ============================================================================
  43. fichier pg_services.conf :
  44.  
  45. [service-core]
  46. host=127.0.0.1
  47. port=5432
  48. user=freedomrole
  49. password=secret
  50. dbname=anakeen
  51.  
  52. [service-freedom]
  53. host=127.0.0.1
  54. port=5432
  55. user=freedomrole
  56. password=secret
  57. dbname=freedom
  58.  
  59. [default-webdav]
  60. host=127.0.0.1
  61. port=5432
  62. user=freedomrole
  63. password=secret
  64. dbname=default-webdav
  65.  
  66. =======================================================================
  67. fichier /usr/share/what/ DAV/DAV_init.php
  68.  
  69. global $app_const;
  70.  
  71. $app_const= array(
  72. "INIT" => "yes",
  73. "VERSION" => "0.6.1-0",
  74. "FREEDAV_SERVEUR" =>array("val"=>"",
  75. "descr"=>N_("address of the webdav server for freedav"),
  76. "global"=>"Y"),
  77. "WEBDAV_SERVEUR" =>array("val"=>"",
  78. "descr"=>N_("address of the webdav server for authenticate server"),
  79. "global"=>"Y"),
  80. "WEBDAV_DB" =>array("val"=>"service=default-webdav",
  81. "descr"=>N_("database access for webdav"),
  82. "global"=>"Y"),
  83. "WEBDAV_ROOTID" =>array("val"=>"9",
  84. "descr"=>N_("folder identificator for root"),
  85. "global"=>"Y")
  86. );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement