Page 1 of 1

anyone have an idea about why/how this is happening?

PostPosted: 27. March 2005 22:23
by sixx
Using XAMPP 1.4.12 on Windows XP

ok first of all i have read several tuts on apache and virtual hosts and I have almost all of my Vhosts working however..two of my VHOSTS are not working correctly.

Here is a copy of my Vhosts section:


Code: Select all
 VirtualHost: If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs-2.0/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for requests without a known
# server name.
#
#<VirtualHost *>
#    ServerAdmin webmaster@dummy-host.example.com
#    DocumentRoot /www/docs/dummy-host.example.com
#    ServerName dummy-host.example.com
#    ErrorLog logs/dummy-host.example.com-error_log
#    CustomLog logs/dummy-host.example.com-access_log common
#</VirtualHost>

# Win32DisableAcceptEx ON

<VirtualHost *:80>
   ServerAdmin webmaster@dummy-host.example.com
   DocumentRoot C:/apachefriends/xampp/htdocs/xampp
   ServerName localhost
       CustomLog logs/nodmain.log combined
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin sixx@mydomain.com
   DocumentRoot C:/www/mysite2
   ServerAlias mysite2.com
   ServerName www.mysite2.com
       ErrorDocument 404 /errors/404.html
       ErrorDocument 403 /errors/403.html
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin sixx@mydomain.com
   DocumentRoot C:/www/site3
   ServerAlias site3.com
   ServerName www.mysite3.com
       ErrorDocument 404 /errors/404.html
       ErrorDocument 403 /errors/403.html
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin sixx@mysite4.com
   DocumentRoot C:/www/site4
   ServerAlias mysite4.com
   ServerName www.mysite4.com
       ErrorDocument 404 /errors/404.html
       ErrorDocument 403 /errors/403.html
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin sixx@mydomain.com
   DocumentRoot C:/www/site5
   ServerAlias site5.com
   ServerName www.site5.com
       ErrorDocument 404 /errors/404.html
       ErrorDocument 403 /errors/403.html
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin sixx@mydomain.com
   DocumentRoot C:\www\site6
   ServerAlias site6.com
   ServerName www.site6.com
       ErrorDocument 404 /errors/404.html
       ErrorDocument 403 /errors/403.html
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin sixx@mydomain.com
   DocumentRoot C:/www/site7
   ServerAlias www.mydomain7.com
   ServerName mydomain7.com
       ErrorDocument 404 /errors/404.html
       ErrorDocument 403 /errors/403.html
</VirtualHost>

<VirtualHost *:80>
   ServerAdmin sixx@mydomain.com
   DocumentRoot C:\www\site8
   ServerAlias mydomain8.com
   ServerName www.mydomain8.com
       ErrorDocument 404 /errors/404.html
       ErrorDocument 403 /errors/403.html
</VirtualHost>



Do you see anything wrong with this.

Here is an example of what one of the sites does when trying to go to the web address.

Site5


Now of course i edited certain parts for privacy of some of my users, but you get the general idea. someone please give me a hand with this

Thanks,

Sixx

PostPosted: 28. March 2005 03:10
by sixx
nevermind i figured it out

PostPosted: 01. April 2005 19:45
by prathapml
Could you please let us also know what the solution was?
I'd like to hear it as well....