Bluehost.com Web Hosting $6.95

Vhost

This is a discussion on Vhost within the Windows Web Servers forums, part of the Web Server and Related Forums category; I am trying to serve multiple domains on my XP apache server and I am sure everything is set up ...


Go Back   Usenet Forums > Web Server and Related Forums > Windows Web Servers

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-16-2005
wayne.parker@gmail.com
 
Posts: n/a
Default Vhost

I am trying to serve multiple domains on my XP apache server and I am
sure everything is set up right. I've done this hundreds of times on a
linux platform:

NameVirtualHost 69.1.34.248:80

<VirtualHost 69.1.34.248:80>
DocumentRoot c:/websites/virtualpassages
ServerName www.virtualpassages.com
ServerAlias virtualpassages.com virtualpassages
ErrorLog logs/virtualpassages.log
</VirtualHost>

<VirtualHost 69.1.34.248:80>
DocumentRoot C:/websites/sailsimulator
ServerName www.sailsimulator.us
ServerAlias sailsimulator.us sailsimulator
ErrorLog logs/sailsimulator.log
</VirtualHost>

<VirtualHost 69.1.34.248:80>
DocumentRoot C:/websites/sailsimulator
ServerName www.motorboatsimulator.us
ServerAlias motorboatsimulator.us motorboatsimulator
ErrorLog logs/motorboat.log
</VirtualHost>

when I do an apache -S everything looks cool, but everything coming in
goes to the first one.

Let me run a theory by ya though. I have this machine on a router and
I am forwarding port 80 from the router to the machine. Is it maybe
stripping of the name and just going to port 80 without a name and
therfore going to the default.
Any help would be greatly appreciated,
Wayne P.

  #2 (permalink)  
Old 03-01-2005
CW3849
 
Posts: n/a
Default Re: Vhost

I bagged it trying to figure out Vhosts, I am set up like you are except I
send each server address to a different port

NameVirtualHost 192.168.1.100:80
NameVirtualHost 192.168.1.100:1024
NameVirtualHost 192.168.1.100:2025

----
Portland Garage Sales
http://www.portlandgaragesales.com
Oregon's Online Garage Sale

-----
<wayne.parker@gmail.com> wrote in message
news:1108572668.515974.227530@c13g2000cwb.googlegr oups.com...
> I am trying to serve multiple domains on my XP apache server and I am
> sure everything is set up right. I've done this hundreds of times on a
> linux platform:
>
> NameVirtualHost 69.1.34.248:80
>
> <VirtualHost 69.1.34.248:80>
> DocumentRoot c:/websites/virtualpassages
> ServerName www.virtualpassages.com
> ServerAlias virtualpassages.com virtualpassages
> ErrorLog logs/virtualpassages.log
> </VirtualHost>
>
> <VirtualHost 69.1.34.248:80>
> DocumentRoot C:/websites/sailsimulator
> ServerName www.sailsimulator.us
> ServerAlias sailsimulator.us sailsimulator
> ErrorLog logs/sailsimulator.log
> </VirtualHost>
>
> <VirtualHost 69.1.34.248:80>
> DocumentRoot C:/websites/sailsimulator
> ServerName www.motorboatsimulator.us
> ServerAlias motorboatsimulator.us motorboatsimulator
> ErrorLog logs/motorboat.log
> </VirtualHost>
>
> when I do an apache -S everything looks cool, but everything coming in
> goes to the first one.
>
> Let me run a theory by ya though. I have this machine on a router and
> I am forwarding port 80 from the router to the machine. Is it maybe
> stripping of the name and just going to port 80 without a name and
> therfore going to the default.
> Any help would be greatly appreciated,
> Wayne P.
>



  #3 (permalink)  
Old 03-15-2005
CW3849
 
Posts: n/a
Default Re: Vhost

set the wild card to read the headers on any domain name coming in, then you
have to name the domains. The headers are read and forwarded to the right
domain name.

NameVirtualHost *:80

<VirtualHost www.virtualpassages.com:80>
DocumentRoot c:/websites/virtualpassages
ServerName www.virtualpassages.com
ServerAlias virtualpassages.com virtualpassages
ErrorLog logs/virtualpassages.log
</VirtualHost>

<VirtualHost www.sailsimulator.us:80>
DocumentRoot C:/websites/sailsimulator
ServerName www.sailsimulator.us
ServerAlias sailsimulator.us sailsimulator
ErrorLog logs/sailsimulator.log
</VirtualHost>


> <wayne.parker@gmail.com> wrote in message
> news:1108572668.515974.227530@c13g2000cwb.googlegr oups.com...
> > I am trying to serve multiple domains on my XP apache server and I am
> > sure everything is set up right. I've done this hundreds of times on a
> > linux platform:
> >
> > NameVirtualHost 69.1.34.248:80
> >
> > <VirtualHost 69.1.34.248:80>
> > DocumentRoot c:/websites/virtualpassages
> > ServerName www.virtualpassages.com
> > ServerAlias virtualpassages.com virtualpassages
> > ErrorLog logs/virtualpassages.log
> > </VirtualHost>
> >
> > <VirtualHost 69.1.34.248:80>
> > DocumentRoot C:/websites/sailsimulator
> > ServerName www.sailsimulator.us
> > ServerAlias sailsimulator.us sailsimulator
> > ErrorLog logs/sailsimulator.log
> > </VirtualHost>
> >
> > <VirtualHost 69.1.34.248:80>
> > DocumentRoot C:/websites/sailsimulator
> > ServerName www.motorboatsimulator.us
> > ServerAlias motorboatsimulator.us motorboatsimulator
> > ErrorLog logs/motorboat.log
> > </VirtualHost>
> >
> > when I do an apache -S everything looks cool, but everything coming in
> > goes to the first one.
> >
> > Let me run a theory by ya though. I have this machine on a router and
> > I am forwarding port 80 from the router to the machine. Is it maybe
> > stripping of the name and just going to port 80 without a name and
> > therfore going to the default.
> > Any help would be greatly appreciated,
> > Wayne P.
> >

>
>
>



 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:30 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0