Advertisement
Guest User

Untitled

a guest
Nov 14th, 2018
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. <VirtualHost *:80>
  2. ServerName newcloud.deymed.com
  3. # Use "DocumentRoot /var/www/html" for Centos/Fedora
  4. # Use "DocumentRoot /var/www" for Ubuntu/Debian
  5. DocumentRoot /storage/seafile/seafile-server-latest
  6. Alias /media /storage/seafile/seafile-server-latest/seahub/media
  7. Alias /.well-known /var/www/wk
  8.  
  9.  
  10. RewriteEngine On
  11.  
  12. <Location /media>
  13. Require all granted
  14. </Location>
  15.  
  16. #
  17. # seafile fileserver
  18. #
  19. ProxyPass /seafhttp http://127.0.0.1:8082
  20. ProxyPassReverse /seafhttp http://127.0.0.1:8082
  21. RewriteRule ^/seafhttp - [QSA,L]
  22.  
  23. #
  24. # seahub
  25. #
  26. SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
  27. ProxyPreserveHost On
  28. ProxyPass /.well-known !
  29. ProxyPass / http://127.0.0.1:8000/
  30. ProxyPassReverse / http://127.0.0.1:8000/
  31. </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement