Apache virtual domains, can only have www and not http? what am I doing wrong?

Posted on 2007-07-30
Last Modified: 2013-12-15
Hi all

Having a weird apache problem, where one of my websites can only work in www format, and not http:// as well.

lets say my domain is

if I do apache sends that user where the files are, talking virtual domains here.

If that user does, they get the default server webpage and nothing to do with what I want.

i know its something in the apache config, if I change the virtual domain in there, I mean the "ServerName"
to or just, either or will work.

But ofcourse I want both to work, to not complecate my users and have problems

Hope someone can help

Question by:thechase22
    LVL 48

    Accepted Solution


            ServerAlias *
    LVL 1

    Author Comment

    I havent used serveralias for any of my configs, an its not by default, this is strange?
    LVL 1

    Author Comment

    can you explain what the . is after the *

    Bit weird that
    LVL 48

    Expert Comment

    LVL 1

    Author Comment

    Well thank you very much for your quick responsive help my kind sir, EE was the winner over google this time :)

    Featured Post

    What Security Threats Are You Missing?

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Most ColdFusion developers get confused between the CFSet, Duplicate, and Structcopy methods of copying a Structure, especially which one to use when. This Article will explain the differences in the approaches with examples; therefore, after readin…
    Introduction This article explores the design of a cache system that can improve the performance of a web site or web application.  The assumption is that the web site has many more “read” operations than “write” operations (this is commonly the ca…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

    728 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now