First time here? Check out the FAQ!

Revision history  [back]

Unable to start Apache Server-Error in RewriteEngine

I have used the code provided in the deployment section of the documentation, all I have done is change the directly to match with my setup but when start the apache server it fails at line RewriteEngine on

Here is the section:

 RewriteEngine on `this is the line with error`
     RewriteRule /admin(.*)$ https://MY-IP-ADDRESS/admin$1 [L,R=301]
     </LocationMatch>
 CustomLog /var/log/httpd/askbot/access_log common
 ErrorLog /var/log/httpd/askbot/error_log
 LogLevel debug

Here is the error:

* Starting web server apache2                                                                                     Syntax error on line 38 of /etc/apache2/sites-enabled/askbot:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'start' failed.
The Apache error log may have more information.

also I am not sure how to configure following two lines:

#WSGISocketPrefix /path/to/socket/sock
#WSGIPythonEggs /var/python/eggs

Unable to start Apache Apachi Server-Error in RewriteEngine

I have used the code provided in the deployment section of the documentation, all I have done is change the directly to match with my setup but when start the apache server it fails at line RewriteEngine on

Here is the section:

 RewriteEngine on `this is the line with error`
     RewriteRule /admin(.*)$ https://MY-IP-ADDRESS/admin$1 [L,R=301]
     </LocationMatch>
 CustomLog /var/log/httpd/askbot/access_log common
 ErrorLog /var/log/httpd/askbot/error_log
 LogLevel debug

Here is the error:

* Starting web server apache2                                                                                     Syntax error on line 38 of /etc/apache2/sites-enabled/askbot:
Invalid command 'RewriteEngine', perhaps misspelled or defined by a module not included in the server configuration
Action 'start' failed.
The Apache error log may have more information.

also I am not sure how to configure following two lines:

#WSGISocketPrefix /path/to/socket/sock
#WSGIPythonEggs /var/python/eggs