Skip to content

Instantly share code, notes, and snippets.

@wolegis
Last active February 19, 2023 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wolegis/002e198c2db7980a84fd8d160c2bdb9a to your computer and use it in GitHub Desktop.
Save wolegis/002e198c2db7980a84fd8d160c2bdb9a to your computer and use it in GitHub Desktop.
Nextcloud sample configuration for Apache HTTPD when using a subfolder for Nextcloud
Alias /nextcloud /usr/share/webapps/nextcloud
<Directory /usr/share/webapps/nextcloud>
Require all granted
AllowOverride All
Options FollowSymLinks MultiViews
DirectoryIndex index.php index.html
<IfModule mod_dav.c>
Dav off
</IfModule>
<FilesMatch \.php$>
SetHandler "proxy:unix:/run/php-fpm-legacy/nextcloud.sock|fcgi://nextcloud/"
</FilesMatch>
</Directory>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment