Clean urls on Ubuntu 8.04 LAMP server with multiple sites
I wanted to configure Apache to allow clean urls. I found http://drupal.org/node/134439 but it did not work. I have multiple websites setup by creating each sites conf file in /etc/apache2/sites-available, then symbolically linking to them from the sites-enabled directory. I figured this must be where I should make the changes, so I did this:
First, from the previous site:
sudo a2enmod rewrite
/etc/init.d/apache2 force-reload
Then my way
sudo vim /etc/apache2/sites-available/eroticpenguin
and changed the line that says Allow Override None to Allow Override All.
the a sudo /etc/init.d/apache2/ restart and everything worked fine.
Maybe this will help someone, maybe it won't, it will remind me in the future...
Update 2-16-09
This helped me today. In fact, everything was setup according to this blog. But for some reason, the parent directory of the new site did not have an .htaccess so my clean urls did not work. Therefore, I had to copy it over from another site.
sitename:/var/www/sites/sitename# sudo a2enmod rewrite
Enabling module rewrite.
Run '/etc/init.d/apache2 restart' to activate new configuration!
sitename:/var/www/sites/sitename# /etc/init.d/apache2 restart