service-nextcloud/docker-entry.sh

16 lines
300 B
Bash
Executable file

#!/bin/sh
# Add htaccess configuration
cat >> /var/www/html/.htaccess <<MARK
<IfModule mod_proxy.c>
RewriteRule ^sites/(.*) http://127.0.0.1/index.php/apps/cms_pico/pico/$1 [P]
</IfModule>
MARK
# Enable apache modules
a2enmod proxy proxy_http rewrite
# Run service
cron
exec apache2-foreground