Apache debugging: where to find error logs?
Posted
by
AP257
on Super User
See other posts from Super User
or by AP257
Published on 2010-08-09T15:32:11Z
Indexed on
2012/04/05
23:32 UTC
Read the original article
Hit count: 473
apache
I'm new to Apache and web serving generally, so apologies if this is a very stupid question.
I want to configure a new sub-domain on a working site and install a forum there. I'm using a Debian server that already has Apache, mod_wsgi and a bunch of virtual hosts successfully running on it.
I first installed my forum app (Django's OSQA). Following the OSQA instructions, I then created an Apache config file that specified ServerName as the new sub-domain. I also created a .wsgi file for the app, and pointed WSGIScriptAlias at it. I then restarted Apache.
However, when I go to the new sub-domain, I get a 404 error message. Two questions:
- Is there a step missing above? Or is simply creating a new Apache config file in
sites-available
enough to 'tell' Apache about a new sub-domain? - If there's something else going wrong, how can I debug it? The
ErrorLog
andCustomLog
specified in the config file are both blank.apache2.conf
, which I guess is Apache-wide configuration, specifiesErrorLog /var/log/apache2/error.log
, but this is yet another blank file.
© Super User or respective owner