Apache 2.2 virtual hosts  gets internal error when accessing Drupal site

Posted on 2011-05-12
Last Modified: 2012-08-14
I have drupal 6.2 setup on a windows machine. when I configure the httpd-vhosts.conf file as follows I get and internal error problem:

<Directory C:/xampp\htdocs/drupal6>
   Order Deny,Allow
   Allow from all

NameVirtualHost *:80

<VirtualHost *:80>
      ServerName default
      DocumentRoot C:/xampp/htdocs/drupal6/default

<VirtualHost *:80>
      DocumentRoot C:/xampp/htdocs/drupal6/systrends

I change to this, and get access forbidden.

<VirtualHost *:80>
      ServerName default
      DocumentRoot /default

<VirtualHost *:80>
      DocumentRoot /systrends

Any clues as to what I should do?  If I take out the virtual host Drupal goes to the default folder to set up the files with out a problem. I need to run two websites from this installation.
Question by:jimmylew52
    LVL 12

    Accepted Solution

    Do you have a general errorlog that you might be able to look at? If so, post the last 10 or so lines from that log here after you try each of the above (20 lines total) ... it could probably narrow down a bit of what you're going through.

    I'm a Linux guy, but the Windows world's Apache works the same way -- just a few nuances. It could be a problem in your syntax, or it could be a problem with your environment. I'm just trying to rule out either one of them.


    LVL 1

    Author Comment

    error logs only say does not exist.

    Changing this line and rebooting solved the problem.

    DocumentRoot C:/xampp/htdocs/drupal

    Thanks for responding

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    A web service ( is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
    If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    9 Experts available now in Live!

    Get 1:1 Help Now