Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 31st March 2011, 15:53
sean1983 sean1983 is offline
Junior Member
 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Virtual Host / Sub domains / Perfect Server

Hi, Im pretty new to Apache and DNS etc, I will first explain what i have currently.

I have an external webhost hosting my website 'sean1983.com'
I have a SubDomain 'home.sean1983.com' A Record pointed at my home IP Address'
I have a Computer running XenServer with OpenSUSE 11.4 Setup /w ISPCONFIG (Following Perfect Server Guide)
The Computers are behind a D-Link NAT Router.

Okay so this is what i would like to do.

I wanted to be able to create virtual hosts on my Suse Server and have them prefix my home.sean1983.com e.g. Virtual host 'live' would appear 'live.home.sean1983.com'. What i have done so far is via my External Host CPanel i have setup a wildcard *.home.sean1983.com as A Record. Then configured two conf files in the vhost.d/ folder. one for home.sean1983.com for default page and one for live.home.sean1983.com.

when i goto home.sean1983.com, i get the test page for that virtual host,
but when i goto live.home.sean1983.com i get the same test page as home.sean1983.com not the correct one.

There is a few things that i am unsure of, I dont know if i need a vhost conf for the default page as i asume it would take default from normal apache www path. but when i placed the live.home.sean1983.com conf in vhost.d folder it became the default. Also am i corrent putting my home IP on my webhosts DNS as a A Record not CNAME.

I think i am close to making it work, i think there is something small i am doing wrong here.

Also one thing i would like to add is, When i go into ISPConfig > Sites and Create a new site. Apache crashes. and i cant restart it until i have removed the file it creates for the site in the site-enabled folder. Not sure what is happening here

All i want to do it have virtual sub domains on home.sean1983.com

Any help would be fantastic please?

Thanks

Sean Yem
Reply With Quote
Sponsored Links
  #2  
Old 31st March 2011, 16:21
i-chat i-chat is offline
Member
 
Join Date: Jan 2011
Posts: 31
Thanks: 3
Thanked 0 Times in 0 Posts
Default

im not enitrely shure but when you set an A-record for home.yourdomain.com that means that your ispconfig will get directed to when somone points to that domain, so you only need to configure your vhosts to get the right website served.

you wont need any cnames (as they are for other things that you dont need in your situation...
Reply With Quote
  #3  
Old 31st March 2011, 20:45
sean1983 sean1983 is offline
Junior Member
 
Join Date: Mar 2011
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks i-chat, I thought A Record was correct for this usage.

I have played around a bit today with a few things, but still cant get the sub domains to work. also still when i make a site in ISPConfig > Sites apache crashes.
Reply With Quote
  #4  
Old 1st April 2011, 14:09
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Are there any errors in Apache's error log?
__________________
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
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail -Ubuntu 8.04 c4rdinal HOWTO-Related Questions 112 23rd August 2011 10:49
Centos5.4/ISPConfig 3--Virtual site not working MichaelCaditz Installation/Configuration 25 25th March 2011 11:37
ISPConfig3 mail doesn't work Marr General 6 1st September 2010 09:32
Problem with keeping Apache alive bobeq Server Operation 3 29th November 2007 16:11
Webmail Relay Error palkat General 17 23rd April 2006 18:12


All times are GMT +2. The time now is 14:47.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.