Difference between revisions of "Apache: Enable Mod Rewrite"

From OnnoWiki
Jump to navigation Jump to search
Line 3: Line 3:
 
   a2enmod rewrite
 
   a2enmod rewrite
  
 +
Untuk instalasi [[social networking]] yang aman perlu di AllowOverride All
 +
 +
vi /etc/apache2/sites-enabled/000-default
 +
 +
DocumentRoot /var/www
 +
<Directory />
 +
      Options FollowSymLinks
 +
      AllowOverride '''all'''
 +
</Directory>
 +
<Directory /var/www/>
 +
      Options Indexes FollowSymLinks MultiViews
 +
      AllowOverride '''all'''
 +
      Order allow,deny
 +
      allow from all
 +
</Directory>
 +
 
Jangan lupa restart Apache
 
Jangan lupa restart Apache
  

Revision as of 05:11, 6 April 2012

Lakukan

 a2enmod rewrite

Untuk instalasi social networking yang aman perlu di AllowOverride All

vi /etc/apache2/sites-enabled/000-default
DocumentRoot /var/www
<Directory />
     Options FollowSymLinks
     AllowOverride all
</Directory>
<Directory /var/www/>
     Options Indexes FollowSymLinks MultiViews
     AllowOverride all
     Order allow,deny
     allow from all
</Directory>

Jangan lupa restart Apache

/etc/init.d/apache2 restart

Pranala Menarik