# Revision history [back]

### 500 Internal Server Error when I tried installing Askbot with Apache

Hello,

I am trying to make Askbot to work with Apache and I had followed the instructions that were given in this document. I had copied the httpd.conf straight from the doc with some modifications of my own to fit to my localhost machine. I am new to the linux world, and to apache and askbot as well. I am getting a 500 Internal Server Error, and both the apache error logs and askbot logs dont show anything suspicious. The askbot's error.log just has these lines for my browser request:

  [Wed May 11 23:43:11 2011] [debug] mod_deflate.c(615): [client 127.0.0.1] Zlib: Compressed 608 to 368 : URL /
[Wed May 11 23:43:24 2011] [debug] mod_deflate.c(615): [client 127.0.0.1] Zlib: Compressed 608 to 368 : URL /qasite


I think I might be missing something very basic here, please let me know. I would really appreciate that. I have no idea where to look at now.

My httpd.conf looks as follows:

WSGISocketPrefix /home/ibm/qasite/socket
WSGIPythonEggs /var/python/eggs
WSGIPythonHome /usr/local

<VirtualHost 127.0.0.1:80>

DocumentRoot /home/ibm/qasite
ServerName localhost

#aliases to serve static media directly
Order deny,allow
Allow from all
</DirectoryMatch>
Order deny,allow
Allow from all
</Directory>
#must be a distinct name within your apache configuration
WSGIScriptAlias / /home/ibm/qasite/django.wsgi
#make all admin stuff except media go through secure connection
RewriteEngine on
RewriteRule /admin(.*)$https://localhost/admin$1 [L,R=301]
</LocationMatch>
LogLevel debug
</VirtualHost>

<VirtualHost 127.0.0.1:443>

DocumentRoot /home/ibm/qasite
ServerName localhost
RewriteRule django.wsgi(.*)$http://localhost$1 [L,R=301]