Solved

How do I solve the http:// verse www. problem for virtual hosts?

Posted on 2006-11-17
2
184 Views
Last Modified: 2010-03-04
I have a virtual host that uses domainname.com. Problem is that only www.domainname.com works, but not http://domainname.com doesn't work. I tried scriptalias *.domainname.com, but that didn't work. Heres how my config file looks like:

NameVirtualHost *:80

<VirtualHost *:80>
   ServerName domainname.com
   ServerAlias *.domainname.com
   DocumentRoot /my/www
</VirtualHost>

How do I solve this? Pls help. Thanks in advance for all the help.
0
Comment
Question by:bemara57
[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: 17966713
> but not http://domainname.com doesn't work.

Does domainname.com resolve to your server (DNS,> name server entry)?

ServerName domainname.com should match taht request, your ServerAlias should match www.domainname.com 
0
 
LVL 15

Expert Comment

by:periwinkle
ID: 17966738
I agree with caterham_www - there are two things that must resolve properly in order for a web site to come up as both www.domain.com and domain.com:

(1) dns for www.domain.com and domain.com has to resolve to the server
(2) the web site configuration file has to accomodate both www.domain.com and domain.com

You have (2), is it possibly set up differently for (1)?
0

Featured Post

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

Introduction As you’re probably aware the HTTP protocol offers basic / weak authentication, which in combination with the relevant configuration on your web server, provides the ability to password protect all or part of your host.  If you were not…
Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

717 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