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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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. |
|
|||
|
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. > |
|
|||
|
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. > > > > > |