apache2 in Debian - adding vhost - which file to edit?
I am trying to add a name based virtual host to apache2-mpm-prefork
version 2.2.9-7 on Debian lenny/sid.
First I read to edit /etc/apache2/httpd.conf but this file it seems is
empty and not used in Debian.
Then I read to edit /etc/apache2/apache2.conf but it seems that is
also not the right place for adding it so then
I found the file /etc/apache2/sites-enabled/000-default
This is the correct file to edit? I was told to add my section to it such as:
But there was alreay a long <VirtualHost *:80> statement in there with
many directives. It seems the way apache2 is set up it uses a virtual
host for the regular host (/var/www on localhost).
So is it ok to just add my <VirtualHost *:80> my new stuff
</VirtualHost> after the first VirtualHost block already in there? I
just did that and this is what i have now:
Options Indexes FollowSymLinks MultiViews
allow from all
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Allow from all
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
CustomLog /var/log/apache2/access.log combined
Alias /doc/ "/usr/share/doc/"
Options Indexes MultiViews FollowSymLinks
Deny from all
Allow from 127.0.0.0/255.0.0.0 ::1/128
ServerAlias jesujuva.org www.jesujuva.org darcs.jesujuva.org