#1  
Old 4th April 2007, 12:13
Balthazar Balthazar is offline
Junior Member
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default Subdomains setup

Is there anyway of setting up sub-domains so that they are in subfolders of the main web root, but come up with addresses that match sub.main.com?

Let me be clear about what I want.... My main site is for example abcd.com.

In ISPConfig I create a site for www.abcd.com with a co-domain of abcd.com, and at my DNS host (not ISPConfig) I have an A record for abcd.com and a CNAME for www.abcd.com pointing to abcd.com.

I now want several subdomains, let us say: sub1.abcd.com, sub2.abcd.com and sub3.abcd.com. They will all have different content and content that is different from www.abcd.com, BUT they need to use the same CMS and share an MySQL database in order to share users and possibly forums.

The way I have been trying to do this is to create subfolders to the main document root for each sub-domain, so that the "web" folder has subfolders called sub1, sub2 and sub3, and then create co-domains in ISPConfig under the abcd.com site called sub1, sub2 and sub3, that each forward to the folders above. I then have individual A records at my DNS host for each subsite all pointing to the same IP.

This more or less works, except for one thing - the address in the browser will show up as www.abcd.com/sub1/ instead of sub1.abcd.com even though it is typed in as sub1.abcd.com.

Now, I know it is possible to do this so that the address shows up correctly and with subfolders organized in the way described, but it may not be possible with ISPConfig.

Has anybody managed to set this up with ISPConfig?
Reply With Quote
Sponsored Links
  #2  
Old 4th April 2007, 12:26
edge edge is offline
Moderator
 
Join Date: Dec 2005
Location: The Netherlands
Posts: 2,044
Thanks: 269
Thanked 154 Times in 133 Posts
Default

You can do that with a .htaccess file. (not sure if that is the way you want to do it)
__________________
Never execute code written on a Friday or a Monday.
Reply With Quote
  #3  
Old 4th April 2007, 12:36
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,995
Thanks: 840
Thanked 5,647 Times in 4,457 Posts
Default

If you want to behave all co-domains this way, please have a look here:

http://www.howtoforge.com/forums/showthread.php?t=10554
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #4  
Old 4th April 2007, 14:43
Balthazar Balthazar is offline
Junior Member
 
Join Date: Mar 2007
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Perfect - works a treat, thank you very much.
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
FC4 Setup DNS and ISPCONFIG issues The General Installation/Configuration 7 15th May 2006 10:45
SP-Server Setup - Ubuntu 5.10 "Breezy Badger" - Page 6 (changes) LuisC-SM HOWTO-Related Questions 0 21st April 2006 16:16
Server setup for Web Purposes with custom Firewall ramangill Installation/Configuration 22 8th February 2006 23:43
Debian perfect setup network problem reddogg Installation/Configuration 2 18th January 2006 23:04
Attempting The Perfect Setup (To Some Extent) PsyVision HOWTO-Related Questions 3 3rd November 2005 12:50


All times are GMT +2. The time now is 12:53.


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