Solved

VirtualHost troubles

Posted on 2009-04-01
2
187 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

If you are running a LAMP infrastructure, this little code snippet is very helpful if you are serving lots of HTML, JavaScript and CSS-related information. The mod_deflate module, which is part of the Apache 2.2 application, provides the DEFLATE…
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 …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

751 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