Hi,

I've installed fresh Drupal 5.10 on Ubuntu 8.04 server and I have a problem enabling Clean URLs.

I configured apache so that the www directory is located in my home folder by adding alias /etc/conf.d/alias file:

Alias /jovan /home/jovan/www/
<Directory /home/jovan/www/>
  Options Indexes FollowSymLinks
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

The apache rewrite module is enabled as well.

I keep getting Eror 404 page not found when I click "Run the clean URL test".

Any ideas how to solve this issue?

TIA, Jovan

Comments

chombium’s picture

After a little bit of googling I've found this post http://drupal.org/node/134439
and I decided to debug the problem.

I've added the following two lines in the apache.conf to enable mod_rewrite logging:

RewriteLog "/var/log/apache2/rewrite.log"
RewriteLogLevel 3

The mod_rewrite log didn't show anything wrong but in the apache error log file I've found the following

[Thu Oct 09 13:43:19 2008] [error] [client 127.0.0.1] File does not exist: /var/www/home, referer: http://localhost/jovan/?q=admin/settings/clean-urls

It was clear to me that the path where the mod_rewrite module was pointing was wrong, it pointed to the default document root.
I solved the problem by setting:

RewriteBase /jovan

In the drupal's .htaccess file. The RewriteBase has to be set to the alias of the directory, not to the physical path of the directory.

I hope somebody will find this helpful ;)

Cheers, Jovan