Solved

DNS/domain entries for apache

Posted on 2011-03-25
3
289 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
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 Trending Threat Insights Every Day

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

I will assume you are running a non-server version of some sort of Windows throughout this article. There are many flavors of Windows since Windows Server 2000 - 2008, XP Home & Pro, Vista Home & Pro, and Windows 7 Starter, Home, Pro, Ultimate, etc.…
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…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

744 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

11 Experts available now in Live!

Get 1:1 Help Now