Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cat /etc/httpd/conf.d/zz_nextcloud.conf
- # ================= DO NOT MODIFY THIS FILE =================
- #
- # Manual changes will be lost when this file is regenerated.
- #
- # Please read the developer's guide, which is available
- # at NethServer official site: https://www.nethserver.org
- #
- #
- <VirtualHost *:80>
- ServerName server.domain.tld
- Redirect / https://server.domain.tld/
- </VirtualHost>
- <VirtualHost *:443>
- ServerName server.domain.tld
- SSLEngine on
- SSLCertificateFile /etc/pki/tls/certs/localhost.crt
- SSLCertificateKeyFile /etc/pki/tls/private/localhost.key
- SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5:!SEED:!IDEA
- RewriteCond %{HTTPS} !=on
- RewriteRule (.*) https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
- Alias / "/usr/share/nextcloud/"
- <Directory "/usr/share/nextcloud">
- Options +FollowSymLinks
- AllowOverride All
- Require all granted
- <IfModule mod_dav.c>
- Dav off
- </IfModule>
- <FilesMatch \.php$>
- SetHandler "proxy:fcgi://127.0.0.1:9000"
- </FilesMatch>
- SetEnv HOME /usr/share/nextcloud
- SetEnv HTTP_HOME /usr/share/nextcloud
- SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1
- </Directory>
- <Directory "/usr/share/nextcloud/data/">
- # just in case if .htaccess gets disabled
- Require all denied
- </Directory>
- </VirtualHost>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement