Results 1 to 4 of 4

Thread: How to set up Apache virtualhost

  1. #1

    Default 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:
    Code:
    <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

  2. #2
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    25,384

    Default Re: How to set up Apache virtualhost

    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".
    Henk van Velden

  3. #3
    Join Date
    Mar 2008
    Location
    Bochum, Germany
    Posts
    3,587

    Default Re: How to set up Apache virtualhost

    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

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,043
    Blog Entries
    14

    Default Re: How to set up Apache virtualhost

    Use Yast's httpd module to configure vhosts.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •