View Single Post
  #2  
Old 8th August 2011, 10:28
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,743 Times in 2,577 Posts
Default

You could simply create a vhost for example.com and redirect it to the www.example.com vhost:

Code:
server {
   server_name example.com;
   rewrite ^ http://www.example.com$request_uri? permanent;
}
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote