Wireless Army
This is a blog / tips and tricks website for web developers and security researchers.
follow us in feedly

by admin
 at 2017-07-19 16:14:00.

if you want to enable stuff like ssl engine ro rewrite engine on apache and you you add the text 'RewriteEngine on' but when you restart apache it will give your errors like:
service apache2 restart
Syntax error on line 47 of /etc/apache2/sites-enabled/000-default:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'configtest' failed.
The Apache error log may have more information.
well to fix it you need to enable the module like so:
a2enmod  rewrite
here is a list of modules that you can enable:
actions alias asis auth_basic auth_digest authn_alias authn_anon authn_dbd authn_dbm authn_default authn_file authnz_ldap authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dump_io env expires ext_filter file_cache filter headers ident imagemap include info ldap log_forensic mem_cache mime mime_magic mod-dnssd negotiation php5 proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http proxy_scgi reqtimeout rewrite setenvif speling ssl status substitute suexec unique_id userdir usertrack vhost_alias