18 lines
349 B
Bash
18 lines
349 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
# Add htaccess configuration
|
||
|
cat >> /var/www/html/.htaccess <<MARK
|
||
|
<IfModule mod_proxy.c>
|
||
|
ProxyPass /sites/ http://localhost/index.php/apps/cms_pico/pico/
|
||
|
ProxyPassReverse /sites/ http://localhost/index.php/apps/cms_pico/pico/
|
||
|
</IfModule>
|
||
|
MARK
|
||
|
|
||
|
# Enable apache modules
|
||
|
a2enmod proxy rewrite
|
||
|
|
||
|
# Run service
|
||
|
cron
|
||
|
exec apache2-foreground
|
||
|
|