68 lines
1.5 KiB
Plaintext
68 lines
1.5 KiB
Plaintext
LoadModule dav_module /usr/lib/apache2/mod_dav.so
|
|
|
|
# Enable php-fpm integration
|
|
<Proxy "fcgi://127.0.0.1:9000" enablereuse=on max=10>
|
|
</Proxy>
|
|
<FilesMatch ".+\.ph(ar|p|tml)$">
|
|
SetHandler "proxy:fcgi://127.0.0.1:9000"
|
|
</FilesMatch>
|
|
DirectoryIndex /index.php index.php
|
|
|
|
<VirtualHost *:80>
|
|
# this site is now behind nginx
|
|
# https://www.headdesk.me/Nginx_reverse_proxy_container
|
|
|
|
# requires ondrej ppa
|
|
# Protocols h2c http/1.1
|
|
|
|
# vhost for music share
|
|
# access with user xpk.music / qwer-tyui-asdf-ghjk-zxcv
|
|
|
|
ServerName xpk.headdesk.me
|
|
ServerAlias localhost
|
|
DocumentRoot /var/www/nextcloud
|
|
ErrorLog /var/log/apache2/xpk.headdesk.me.err
|
|
LogLevel error
|
|
CustomLog /var/log/apache2/xpk.headdesk.me.log combined
|
|
|
|
Alias /music /nas/music
|
|
<Location /music>
|
|
Options Indexes
|
|
DAV on
|
|
#AuthType Digest
|
|
#AuthName "XPKMusic"
|
|
#AuthDigestProvider file
|
|
AuthType Basic
|
|
AuthName "XPK Music"
|
|
#AuthUserFile "/etc/apache2/webdav.passwd"
|
|
AuthUserFile "/etc/apache2/xpkmusic.paswd"
|
|
<Limit GET PROPFIND>
|
|
require valid-user
|
|
</Limit>
|
|
</Location>
|
|
|
|
Alias /nextcloud /var/www/nextcloud
|
|
<Location /nextcloud>
|
|
Require all granted
|
|
</Location>
|
|
|
|
<Directory /var/www/nextcloud/>
|
|
Options +FollowSymlinks
|
|
AllowOverride All
|
|
|
|
<IfModule mod_dav.c>
|
|
Dav off
|
|
</IfModule>
|
|
|
|
SetEnv HOME /var/www/nextcloud
|
|
SetEnv HTTP_HOME /var/www/nextcloud
|
|
|
|
</Directory>
|
|
|
|
<Directory /var/www/nextcloud/data/>
|
|
Require all denied
|
|
</Directory>
|
|
|
|
</VirtualHost>
|
|
|