This week's book giveaway is in the Server-Side JavaScript and NodeJS forum.
We're giving away four copies of Modern JavaScript for the Impatient and have Cay Horstmann on-line!
See this thread for details.
Win a copy of Modern JavaScript for the Impatient this week in the Server-Side JavaScript and NodeJS forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Help w/ Apache

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Help I cannot seem to make my server see two websites. I have to domain names that both point to the same ip address so I went into the config file and tried to set up the config file in Apache to no avail here is the virtual host part. What am I doing wrong/ when I type in the ozarkaeology.com in the browser it just dumps me out at our joplinstockyards.com homepage?

Apache Config file:

### Section 3: Virtual Hosts
#
# 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 *:80>
# 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>


<VirtualHost *:80>
ServerAdmin dusty@joplinstockyards.com
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs/"
ServerName "www.joplinstockyards.com"
ErrorLog "logs/joplinstockyards.com-error_log"
# CustomLog "logs/joplinstockyards.com-access_log common"
</VirtualHost>

<VirtualHost *:80>
ServerAdmin admin@ozarkaeology.com
DocumentRoot "C:/Program Files/Apache Group/Apache2/htdocs2/"
ServerName "www.ozarkaeology.com"

</VirtualHost>
 
Dustin Eldridge
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Fixed now.
 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It would be nice of you to post the solution too. Others may encounter the same problem and come here for help (like you did).
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic