Solved

VirtualHost troubles

Posted on 2009-04-01
2
189 Views
Last Modified: 2012-05-06
I want
      silvergold.com
to go to:
      c:/wamp/www/silverGold/

I want everthing else to go to:
      c:/wamp/www/

My code sends EVERYTHING to
      c:/wamp/www/silverGold/


<VirtualHost *:80>
    ServerName silvergold.com
	ServerAlias *.silvergold.com
    DocumentRoot c:/wamp/www/silverGold/
</VirtualHost>
 
<VirtualHost *:80>
    ServerName server.com
	ServerAlias *
    DocumentRoot c:/wamp/www/
</VirtualHost>

Open in new window

0
Comment
Question by:hankknight
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 500 total points
ID: 24042267
Namevirtualhost *:80

is somwhere above I guess.

Did you try to reverse the <virtualhost> sections?
0
 
LVL 16

Author Comment

by:hankknight
ID: 24053330
Adding Namevirtualhost solved it! Thanks.
0

Featured Post

Get free NFR key for Veeam Availability Suite 9.5

Veeam is happy to provide a free NFR license (1 year, 2 sockets) to all certified IT Pros. The license allows for the non-production use of Veeam Availability Suite v9.5 in your home lab, without any feature limitations. It works for both VMware and Hyper-V environments

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In Solr 4.0 it is possible to atomically (or partially) update individual fields in a document. This article will show the operations possible for atomic updating as well as setting up your Solr instance to be able to perform the actions. One major …
If you are a web developer, you would be aware of the <iframe> tag in HTML. The <iframe> stands for inline frame and is used to embed another document within the current HTML document. The embedded document could be even another website.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this brief tutorial Pawel from AdRem Software explains how you can quickly find out which services are running on your network, or what are the IP addresses of servers responsible for each service. Software used is freeware NetCrunch Tools (https…

623 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question