I use my home computer running SuSE 9.0 to experiment with the current Drupal CVS version under Apache2. Here is what I did to enable clean URLs:
NOTE: All paths given are only for SuSE 9.0.
The first problem was to get mod_rewrite running under Apache2:
I spent about 12 hours trying to enable mod_rewrite for apache2, without any luck. I searched the web, the Apache forum and Drupal's site and tried every trick I found -- nothing worked. Finally I remembered there was something in Yast (SuSE's control center, so to speak) about HTTP servers and went there. It had a listing for a mod_rewrite (under Yast > Network Services > HTTP Server) that was disabled, so I tried enabling it -- and finally mod_rewrite was shown as a running module in phpinfo()..... BTW it does no good to play with Drupal's Clean URL settings until you can see that mod_rewrite is enabled in phpinfo()
Next problem was to get all the Apache2 configuration files configured properly. Here are the changes I made to the config files:
Note: Be sure and change "/srv/www/htdocs/drupal-cvs/" to whatever the full path to your drupal directory is and "drupal-cvs" to the name of your drupal directory!
In -- /srv/www/htdocs/drupal-cvs/.htaccess
I changed <IfModule mod_php4.c>
to <IfModule sapi_apache2.c>
.
I also un-commented # RewriteBase /
and changed it to RewriteBase /drupal-cvs