We added the following rewrite rules:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^wsdl$
RewriteRule ^(.*)$ $1.wsdl [PT]
oracle@oradev:/u01/httpd-2.2.14/bin> ./apachectl start
Syntax error on line 411 of /u01/httpd-2.2.14/conf/httpd.conf:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
This is the correct way to compile Apache to include the mod_rewrite module:
cd /u01
gtar -xzvf httpd-2.2.14.tar.gz
cd httpd-2.2.14
./configure --prefix=${PWD} --enable-rewrite=shared
make
make install
Now adding your rewrite rules will work.
No comments:
Post a Comment