service-nextcloud/docker-entry.sh

17 lines
300 B
Bash
Raw Normal View History

2018-12-25 10:40:50 +00:00
#!/bin/sh
# Add htaccess configuration
cat >> /var/www/html/.htaccess <<MARK
<IfModule mod_proxy.c>
2018-12-25 18:08:16 +00:00
RewriteRule ^sites/(.*) http://127.0.0.1/index.php/apps/cms_pico/pico/$1 [P]
2018-12-25 10:40:50 +00:00
</IfModule>
MARK
# Enable apache modules
2018-12-25 11:23:21 +00:00
a2enmod proxy proxy_http rewrite
2018-12-25 10:40:50 +00:00
# Run service
cron
exec apache2-foreground