Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I want to try mod_alias instead of mod_rewrite for a couple of simple redirect rules, but the directives don't seem to be working when entered in .htaccess. Is it possible that mod_alias is not loaded or enabled on the server? How do I find out?

share|improve this question

2 Answers 2

You can check if mod_alias is enabled by using the following command:

~$ apache2ctl -M | grep alias
 alias_module (shared)
Syntax OK

You can also check manually the file which is loading the module:

~$ cat /etc/apache2/mods-enabled/alias.load 
LoadModule alias_module /usr/lib/apache2/modules/
share|improve this answer
-bash: apache2ctl: command not found – Knocks X Jan 19 '14 at 0:46
cat: /etc/apache2/mods-enabled/alias.load: No such file or directory – Knocks X Jan 19 '14 at 0:46
-bash: LoadModule: command not found – Knocks X Jan 19 '14 at 0:47
you can try httpd -M | grep alias – theofpa Jan 19 '14 at 0:48
httpd -M | grep alias Syntax OK alias_module (static) - Does that mean it's on? – Knocks X Jan 20 '14 at 2:05

You can try listing all active modules with one of these:

apachectl -t -D DUMP_MODULES


httpd -M

Also, check if the module is commented out in the httpd.conf file:

cat /etc/httpd/conf/httpd.conf | grep LoadModule
share|improve this answer
Hi, Gabriel. I am getting '-bash: apachectl: command not found'. Nevermind, the 'httpd -M' command worked – Knocks X Jan 19 '14 at 0:33
When running 'cat /etc/httpd/conf/httpd.conf | grep LoadModule' I am getting 'LoadModule bwlimited_module modules/' – Knocks X Jan 19 '14 at 0:39

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.