How to set up Apache virtualhost

Hi,
I intended to set up a virtualhost, so I create a new.conf in /etc/apache2/vhost.d/new.conf .
Basically I want the documentroot is in /home/mypc/web/ directory. But somehow I can’t make it work.

Here is my new.conf file look likes:


<VirtualHost *:80>
ServerName www.testing.com
DocumentRoot /home/mypc/web

Include /etc/apache2/conf.d/*.conf

<Directory "/home/mypc/web">
AllowOverride None
Order allow, deny
Allow from all
</Directory>

</VirtualHost>

Actually I know nothing about virtualhost setup, the codes above was the result of me googling all night. It seem there are no step by step setup guides available for opensuse machine out there. What a shame.

Anyway, what have I missed?

Thanks

A description of what “somehow I can’t make it work.” means might be of use. As it is now it does not realy deviate from the infamous “it does not work”.

What Henk says, what exactly doesn’t work? When you try and hit the machine’s IP with a browser, you should see an error. Which one?

Here’s an older article about Apache on SLES10, shouldn’t be much different from today’s openSUSE:
http://www.novell.com/coolsolutions/feature/19856.html

Uwe

Use Yast’s httpd module to configure vhosts.