#1  
Old 6th January 2009, 13:46
stevieb_ stevieb_ is offline
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default vhosts / sub domains

I had ISPconfig setup and working on a server.
Via this setup I successfully created the user/domain/subdomain
with the Vhosts all working correctly.

ie:
www.domain.tld -> /web1/
.domain.tld ->/web1/
forums.domain.tld ->/web1/forums/


but no matter what i tried i could not get the FTP to allow logins.

so uninstalled ISPconfig.

reinstalled ISPconfig, after completely reinstalling proftpd.

now the existing domain pointing to /web1/
works fine
but no matter where I add the subdomain forums.* it will not add the vhost as before.

it will add it as a server alias to www.domain.tld .. which isnt what i had before

I do have a backup of the Vhosts_ispconfig.conf .... but without knowing where in the database to actually readd the forums. subdomain its of no use.
Can anyone give me any pointers please

*ps. I have tried pretty much all the suggestions so far in this forums, with no luck.

Regards

Stevieb
Reply With Quote
Sponsored Links
  #2  
Old 6th January 2009, 17:50
till till is online now
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,396
Thanks: 833
Thanked 5,492 Times in 4,323 Posts
Default

Quote:
I do have a backup of the Vhosts_ispconfig.conf .... but without knowing where in the database to actually readd the forums. subdomain its of no use.
Can anyone give me any pointers please
You can not readd this manually.

This might be what you are missing:

http://www.howtoforge.com/forums/showthread.php?t=12783
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
stevieb_ (7th January 2009)
  #3  
Old 7th January 2009, 14:12
stevieb_ stevieb_ is offline
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
Default

it wasnt how i had it running before hand.
But that works just aswell

Thank you Till
Reply With Quote
  #4  
Old 8th January 2009, 04:32
odonel odonel is offline
Junior Member
 
Join Date: Dec 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

stevie, how did you get forums.domain.ltd ??

The only subdomain I can get to work is www.domain.ltd ....
Reply With Quote
  #5  
Old 8th January 2009, 09:30
stevieb_ stevieb_ is offline
Junior Member
 
Join Date: Jan 2009
Posts: 19
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

first add your subdomains to the dns

sub1.
sub2.
sub3. etc

then under your www.domain.tld/web/ folder add the relevant folders
ie
www.domain.tld/sub1/
www.domain.tld/sub2/
www.domain.tld/sub3/

then in ISPconfig -> ispmanager -> sites -> www.domain.tld
in the apache directive add

Code:
RewriteEngine on
RewriteCond %{HTTP_HOST}   ^sub1.domain.tld [NC]
RewriteRule   ^/(.*)$ /sub1/$1  [L]
making sure that the subdomain AND the folder are named identical

for each extra subdomain add a new Rewritecond AND RewriteRule



The code snippet was pulled from another thread on this forums, that Till pointed me to.

HTH

Stevieb
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
Strange email problem for one of my domains... any help appreciated paulrobert_a Installation/Configuration 5 9th August 2010 14:15
subdomain for all domains in Vhosts enigmatic Tips/Tricks/Mods 3 20th January 2009 15:32
Web Hosting Only For Individual Domains bails Installation/Configuration 2 19th August 2008 16:35
different counting of domains torusturtle Feature Requests 7 9th May 2007 22:18
Is there a Script to add Multiple Domains (websites) to ISPCONFIG??? bpmee Programming/Scripts 2 23rd February 2007 01:33


All times are GMT +2. The time now is 10:43.


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