PDA

View Full Version : [ubuntu] mod-rewrite



leg
April 23rd, 2008, 07:56 PM
Do I have to do anything to turn on mod-rewrite for apache. I can't seem to find it in synaptic and I have a problem that suggests it may not be on.

[edit]
Ok I have found the mod-enabled and available folder so the question becomes how do I turn rewrite on. I am assuming it is something similar to the a2ensite format of command but I do not know it.

bluefrog
April 23rd, 2008, 08:00 PM
sudo a2enmod rewrite

restart/reload apache

leg
April 23rd, 2008, 08:10 PM
Thankyou very much. By the way how many of these types of commands are there and where can I reference them. I am not used to admining apache this way as I have been doing it in a more manual way until fairly recently and I should learn the Ubuntu way now really.

bluefrog
April 23rd, 2008, 08:23 PM
man a2enmod says it all, especially the FILES section

you may need to install non present modules with apt-get/synaptic

leg
April 23rd, 2008, 08:32 PM
yeah but what I meant was there is a2ensite, a2enmod and their disable counterparts are there any other commands of the a2en format.

leg
April 25th, 2008, 04:23 PM
I am still having trouble getting this to work. I have run the a2enmod rewrite command and then restarted the server but I am still having the same problem. I have a drupal site that I am trying to enable clean urls for but the test for it does not pass. Any ideas?

leg
April 25th, 2008, 06:51 PM
Sorted this out now and the information I needed is here (http://drupal.org/node/134439) just in case anyone else wants to know.

mattbytes
April 27th, 2008, 06:12 PM
Wow...I went through a similar issue. This document helps too:

https://help.ubuntu.com/community/forum/server/apache2/SSL?highlight=%28ssl%29