Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <VirtualHost *:80>
- ServerName newcloud.deymed.com
- # Use "DocumentRoot /var/www/html" for Centos/Fedora
- # Use "DocumentRoot /var/www" for Ubuntu/Debian
- DocumentRoot /storage/seafile/seafile-server-latest
- Alias /media /storage/seafile/seafile-server-latest/seahub/media
- Alias /.well-known /var/www/wk
- RewriteEngine On
- <Location /media>
- Require all granted
- </Location>
- #
- # seafile fileserver
- #
- ProxyPass /seafhttp http://127.0.0.1:8082
- ProxyPassReverse /seafhttp http://127.0.0.1:8082
- RewriteRule ^/seafhttp - [QSA,L]
- #
- # seahub
- #
- SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
- ProxyPreserveHost On
- ProxyPass /.well-known !
- ProxyPass / http://127.0.0.1:8000/
- ProxyPassReverse / http://127.0.0.1:8000/
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement