Solved

DNS/domain entries for apache

Posted on 2011-03-25
3
298 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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

I wrote this article to explain some important DNS concepts that should be known to avoid some typical configuration errors I often see in forums. I assume that what is described here is the typical behavior of Microsoft DNS client. I don't know …
There have been a lot of times when we have seen the need to enter a large number of DNS entries in a forward lookup zone. The standard procedure would be to launch the DNS Manager console, create the Zone and start adding new hosts using the New…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…

867 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

22 Experts available now in Live!

Get 1:1 Help Now