~chqistian/charms/trusty/wordpress/trunk

« back to all changes in this revision

Viewing changes to hooks/config-changed

  • Committer: Marco Ceppi
  • Date: 2014-05-23 16:05:40 UTC
  • mfrom: (72.1.1 wordpress)
  • Revision ID: marco@ceppi.net-20140523160540-np208mv0q0ekhar2
[hackedbellini] Enable mod_rewrite by default

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
        install -o root -g root -m 0644 files/charm/apache/etc_apache2_sites-enabled_wordpress /etc/apache2/sites-available/wordpress
77
77
        a2ensite wordpress
78
78
 
 
79
        # Wordpress users usually use mod_rewrite. Altough it's being enabled
 
80
        # here, it's not used by default. But, if the user changes the
 
81
        # permalinks to something that needs mod_rewrite, wordpress will
 
82
        # automatically create a /var/www/.htaccess to enable it
 
83
        a2enmod rewrite
 
84
 
79
85
        echo "apache2" > .web-engine
80
86
else
81
87
        if [ -f .web-engine ]; then