Jump to content
The Uniform Server Community

vegbasket

Member
  • Posts

    1
  • Joined

  • Last visited

Previous Fields

  • Main OS
    Windows 7

vegbasket's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. Ok have tried to set up the following vhosts # # Virtual Hosts # # 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/trunk/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. # #--US_START--------------Do not remove #--US_END----------------Do not remove # # VirtualHost example: # Almost any Apache directive may go into a VirtualHost container. # The first VirtualHost section is used for all requests that do not # match a ServerName or ServerAlias in any <VirtualHost> block. # # First Virtual Host must be a shallow duplicate of the main host # in httpd.conf <VirtualHost _default_:80> DocumentRoot C:/moonbidserver/UniServer/www ServerName localhost ErrorLog "logs/error.log" CustomLog "logs/access.log" common </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@moonbid.com DocumentRoot C:/moonbidserver/UniServer/vhosts/moonbid.com ServerName moonbid.com ServerAlias www.moonbid.com *.moonbid.com ErrorLog logs/moonbid.com-error.log CustomLog logs/moonbid.com-access.log common <Directory "C:\moonbidserver\UniServer\vhosts\moonbid.com"> Options Indexes Includes AllowOverride All Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@moonbid.co.uk DocumentRoot C:/moonbidserver/UniServer/vhosts/moonbid.com ServerName moonbid.co.uk ServerAlias www.co.uk *.co.uk ErrorLog logs/moonbid.co.uk-error.log CustomLog logs/moonbid.co.uk-access.log common <Directory "C:\moonbidserver\UniServer\vhosts\moonbid.com"> Options Indexes Includes AllowOverride All Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@sellmycrafts.co.uk DocumentRoot C:/moonbidserver/UniServer/vhosts/sellcrafts ServerName sellmycrafts.co.uk ServerAlias www.co.uk *.co.uk ErrorLog logs/sellmycrafts.co.uk-error.log CustomLog logs/sellmycrafts.co.uk-access.log common <Directory "C:\moonbidserver\UniServer\vhosts\sellcrafts"> Options Indexes Includes AllowOverride All Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@woodsncrafts.com DocumentRoot C:/moonbidserver/UniServer/vhosts/woodsncrafts ServerName woodsncrafts.com ServerAlias www.woodsncrafts.com *.woodsncrafts.com ErrorLog logs/woodsncrafts.com-error.log CustomLog logs/woodsncrafts.com-access.log common <Directory "C:\moonbidserver\UniServer\vhosts\woodsncrafts"> Options Indexes Includes AllowOverride All Require all granted </Directory> </VirtualHost> <VirtualHost *:80> ServerAdmin webmaster@sellmycrafts.servebeer.com DocumentRoot C:/moonbidserver/UniServer/vhosts/sellcrafts ServerName sellmycrafts.servebeer.com ServerAlias www.servebeer.com *.servebeer.com ErrorLog logs/sellmycrafts.servebeer.com-error.log CustomLog logs/sellmycrafts.servebeer.com-access.log common <Directory "C:\moonbidserver\UniServer\vhosts\sellcrafts"> Options Indexes Includes AllowOverride All Require all granted </Directory> </VirtualHost> The vhost sellcrafts is meant to resolve at sellmycrafts.co.uk buy resolves at moonbid.co.uk / .com The only reason i can see this is happening is that even though both domains are pointed to my ip address they are also hosted with the same company under the same dns name servers Any other vhost created who's urls are hosted on different names servers resolve at the vhost's created ie www.woodsncrafts.com and sellmycrafts.servebeer.com Is there a way i can get sellmycrafts.co.uk to resolve at its respective vhost folder
×
×
  • Create New...