Solved

DNS/domain entries for apache

Posted on 2011-03-25
3
317 Views
Last Modified: 2012-05-11
What is the easiest way to reroute connections to a domain name ot the correct address?
I.E. if someone types "http://domain.com" what's the easiest way to redirect it to "http://www.domain.com"?
I've put rules in the past in the virtualhosts config in httpd for opening up a root domain but would prefer redirection to the fqdn.

Ideas/tips?
0
Comment
Question by:kiwistag
[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
3 Comments
 
LVL 9

Accepted Solution

by:
fcontrepois earned 500 total points
ID: 35213103
Use serveralias or redirectpermanent

0
 
LVL 1

Expert Comment

by:merjasec
ID: 35213161
In virtual hosts selection make virtual host:

<VirtualHost YOUR_SERVER_IP:80>
        ServerName domain.com
        Redirect / http://www.domain.com/
</VirtualHost>
0
 
LVL 6

Author Closing Comment

by:kiwistag
ID: 35213351
Thanks, ServerAlias worked fine.
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

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 have a multi-homed DNS setup in windows, you can have issues with connectivity to the server that hosts the DNS services (or even member servers of your domain if this same DNS server is a DC). This is because windows registers all of its IPs…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…

726 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