SHARE
TWEET

Untitled

a guest Jun 19th, 2017 47 in 1 day
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <VirtualHost *:443>
  2.  
  3.   ServerName www.myseafile.com
  4.   DocumentRoot /var/www
  5.  
  6.   SSLEngine On
  7.   SSLCertificateFile /path/to/cacert.pem
  8.   SSLCertificateKeyFile /path/to/privkey.pem
  9.  
  10.   Alias /media  /home/user/haiwen/seafile-server-latest/seahub/media
  11.  
  12.   <Location /media>
  13.     ProxyPass !
  14.     Require all granted
  15.   </Location>
  16.  
  17.   RewriteEngine On
  18.  
  19.   #
  20.   # seafile fileserver
  21.   #
  22.   ProxyPass /seafhttp http://127.0.0.1:8082
  23.   ProxyPassReverse /seafhttp http://127.0.0.1:8082
  24.   RewriteRule ^/seafhttp - [QSA,L]
  25.  
  26.   #
  27.   # WebDAV
  28.   # We use http proxy, since SeafDAV is incompatible with FCGI proxy in Apache 2.4.
  29.   #
  30.   ProxyPass /seafdav http://127.0.0.1:8080/seafdav
  31.   ProxyPassReverse /seafdav http://127.0.0.1:8080/seafdav
  32.  
  33.   #
  34.   # seahub
  35.   #
  36.   SetEnvIf Request_URI . proxy-fcgi-pathinfo=unescape
  37.   SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  38.   ProxyPass / fcgi://127.0.0.1:8000/
  39.  
  40. </virtualhost>
RAW Paste Data
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top