enable mod rewrite in webmin

4 posts / 0 new
Last post
#1 Tue, 06/21/2011 - 11:37
securewebs

enable mod rewrite in webmin

Just trying to confirm that the to enable mod rewrite you would have to change the httpd.conf file.

That Inside the httpd.conf file I would uncomment the line LoadModule rewrite_module modules/mod_rewrite.so and also uncommented the ClearModuleList and then find and make sure that the line AddModule mod_rewrite.c is not commented out.

We really just want to make this happen for one website. Does this sound like the right way to do it? Is the easy way to edit that file to use Webmin (file manager or Apache file editing) or do others prefer a command like SSH nano or vi type of fix. ?? Suggestions welcome.

Tue, 06/21/2011 - 11:48
andreychek

Howdy,

Well, how to enable modules in Apache differs depending on what distro you're using... but what you described should work well on CentOS.

I personally use vi from the command line, but there's a number of other ways which work just as well. One of the easiest would be to go into Webmin -> Servers -> Apache -> Global configuration -> Edit Config Files, and to perform the edits from there.

-Eric

Tue, 06/21/2011 - 14:46 (Reply to #2)
grahamg

@andreychek Can you possibly post the best settings one would add to the config file for say..

Gziping the CSS/JS, image and flash files Removing Etags from CSS/JS and Image/flash files. Adding expires header to CSS/JS and image/flash files.

or any other settings that would fully optimize the server for Wordpress sites

Many thanks

Tue, 06/21/2011 - 14:53
andreychek

Sorry, I don't have any recommendations in that regard :-)

If other folks have done some work in that area, perhaps they'll chime in... otherwise, you may want to pop a note into the WordPress forums, it's possible they might have some suggestions regarding all that.

-Eric

Topic locked