virtual hosts - some working, some not - why not?

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

virtual hosts - some working, some not - why not?

Postby andrewembassy » 16. September 2008 00:56

So I have three virtualhosts that I'm trying to set up.

Here's my hosts file:

Code: Select all
##
# Host Database
127.0.0.1   localhost
255.255.255.255   broadcasthost
::1             localhost
fe80::1%lo0   localhost

#my sites
127.0.0.1 carena
127.0.0.1 bcs
127.0.0.1 embassy


Here's my httpd-vhost.conf file:

Code: Select all
NameVirtualHost *:80

<VirtualHost *:80>
   ServerName carena
   DocumentRoot "/AAA/MnC/carena/web"
   ServerAlias carena
    ErrorLog "logs/carena-error_log"
</VirtualHost>

<VirtualHost *:80>
   ServerName bcs
   DocumentRoot "/AAA/MnC/bcs/web"
   ServerAlias bcs
    ErrorLog "logs/bcs-error_log"
</VirtualHost>

<VirtualHost *:80>
   ServerName embassy
   DocumentRoot "/AAA/MnC/embassy\ speakers/web"
   ServerAlias embassy
    ErrorLog "logs/embassy-error_log"
</VirtualHost>


And here's the directory tags in httpd.conf - directly below the first directory tag:

Code: Select all
<Directory "/AAA/MnC/BCS/web">
   AllowOverride all
   DirectoryIndex index.php
   Order Allow,Deny
   Allow from all
</Directory>

<Directory "/AAA/MnC/carena/web">
   AllowOverride all
   DirectoryIndex Default.php
   Order Allow,Deny
   Allow from all
</Directory>

<Directory "/AAA/MnC/embassy\ speakers/web">
   AllowOverride all
   DirectoryIndex index.php
   Order Allow,Deny
   Allow from all
</Directory>


Now for some reason:

+ Carena works great.
+ BCS just hangs on 'connecting to bcs' until it times out and I get a "server taking too long to respond" error message
+ Embassy gives me a 403 permission denied error, even though all the files are -wrxwrxwrx (chmod 777).

Any clues?
andrewembassy
 
Posts: 4
Joined: 15. September 2008 19:27

Postby jmdirc » 18. September 2008 00:50

I'm assuming web is a folder (see red text):


<Directory "/AAA/MnC/BCS/web/">
AllowOverride all
DirectoryIndex index.php
Order Allow,Deny
Allow from all
</Directory>

<Directory "/AAA/MnC/carena/web/">
AllowOverride all
DirectoryIndex index.php
Order Allow,Deny
Allow from all
</Directory>

<Directory "/AAA/MnC/embassy\ speakers/web/">
AllowOverride all
DirectoryIndex index.php
Order Allow,Deny
Allow from all
</Directory>
User avatar
jmdirc
 
Posts: 154
Joined: 10. February 2008 22:44

Postby jorann » 24. September 2008 14:04

DocumentRoot "/AAA/MnC/bcs/web"

<Directory "/AAA/MnC/BCS/web">


watch the case-sensitivity here!
jorann
 
Posts: 7
Joined: 22. August 2008 14:14
Location: Amstelveen, Holland


Return to XAMPP for Mac OS X

Who is online

Users browsing this forum: No registered users and 2 guests