Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

VirtualHost troubles

Posted on 2009-04-01
2
Medium Priority
?
193 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
2 Comments
 
LVL 27

Accepted Solution

by:
caterham_www earned 2000 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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

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…
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.
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Suggested Courses
Course of the Month12 days, 1 hour left to enroll

916 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