logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: SOLVED : More Virtual Host Woes
Author
trotskyicepick



Joined: 04 Oct 2010
Posts: 7

PostPosted: Mon 04 Oct '10 21:43    Post subject: SOLVED : More Virtual Host Woes Reply with quote

I have the following in my httpd.conf :

<VirtualHost *:80>
ServerName andrewpc.com
DirectoryIndex index.php index.html index.htm
DocumentRoot "C:/Apache Software Foundation/Apache2.2/htdocs"
ServerAlias www.andrewpc.com
AddType application/x-httpd-php .php
</VirtualHost>

<VirtualHost *:80>
ServerName drupal7.com
DirectoryIndex index.php index.html index.htm
DocumentRoot "C:/www"
ServerAlias www.drupal7.com
AddType application/x-httpd-php .php
<Directory "c:/www/Drupal7">
Options FollowSymLinks Indexes
AllowOverride FileInfo
Order Allow,Deny
Allow from all
</Directory>

All I get is a 403 error (client denied by server configuration), until I change the Directory directive to point to c:/www which then works fine.

Permissions are set to full on the entire c:\www directory structure.
All the relevant entries are present in my hosts file.

My OS is Windows Vista SP2, php v5.3.2.

Getting frustrated Wink


Last edited by trotskyicepick on Mon 04 Oct '10 23:41; edited 2 times in total
Back to top
trotskyicepick



Joined: 04 Oct 2010
Posts: 7

PostPosted: Mon 04 Oct '10 23:38    Post subject: Reply with quote

Solved, by setting the following:

<VirtualHost *:80>
ServerName andrewpc.com
DirectoryIndex index.php index.html index.htm
DocumentRoot "C:/Apache Software Foundation/Apache2.2/htdocs"
ServerAlias www.andrewpc.com
AddType application/x-httpd-php .php
</VirtualHost>

<VirtualHost *:80>
ServerName drupal7.com
DirectoryIndex index.php index.html index.htm
DocumentRoot "C:/www/Drupal7"
ServerAlias www.drupal7.com
AddType application/x-httpd-php .php
<Directory "c:/www/Drupal7">
# Options FollowSymLinks Indexes
Allow from all
Order Allow,Deny
# AllowOverride FileInfo
</Directory>
Back to top


Reply to topic   Topic: SOLVED : More Virtual Host Woes View previous topic :: View next topic
Post new topic   Forum Index -> Apache