module rewrite_module is built-in and can't be loaded

when you tried to start httpd server and it showing this error "httpd: Syntax error on line 102 of /usr/local/apache/conf/httpd.conf: module rewrite_module is built-in and can't be loaded" .

Because you configure Apache with --enable-modules=most , the modules are built into Apache and do not need to be loaded with LoadModule before using them.

You can use mod_rewrite directives like RewriteEngine , RewriteCond, and RewriteRule without any need for a LoadModule directive.


run this:Quote:/usr/local/apr-httpd/bin/httpd -M

to see a list of built-in (i.e. static) modules. Also see the configure docs.

If you configure Apache with --enable-mods-shared=all , then you could use the LoadModule directive in httpd.conf to load the modules you will be using.

你可能感兴趣的:(Server)