#1  
Old 30th September 2008, 01:09
dagg dagg is offline
Junior Member
 
Join Date: Sep 2008
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default default folder for subdomains?

is there any way to set a separate default folder for a subdomain?

for example, domain.tld is going to go to /var/www/domain.tld
what im trying to get to happen is sub.domain.tld winds up pulling the html file from /var/www/domain.tld/subdomain_folder

make sense?
Reply With Quote
Sponsored Links
  #2  
Old 30th September 2008, 17:16
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 can do this either with a rewrite rule (see http://httpd.apache.org/docs/2.2/rew...ite_guide.html ), or you create a new vhost for sub.domain.tld.
__________________
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
  #3  
Old 1st October 2008, 08:58
zcworld zcworld is offline
Senior Member
 
Join Date: Jul 2006
Location: South Australia
Posts: 329
Thanks: 2
Thanked 37 Times in 37 Posts
Send a message via MSN to zcworld Send a message via Skype™ to zcworld
 
Default

i like to use
/var/www/vhost/mysite.com/htdocs <is the www / and top level domain site>
/var/www/vhost/mysite.com/logs <apache logs folder>
/var/www/vhost/mysite.com/tmp <tmp folder>
__________________
Shane Ebert :: Facebok
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
Mail server using Postfix, Dovecot, Mysql... Postfix virtual maps doesn't work?? tarasbuljba HOWTO-Related Questions 33 28th May 2010 14:33
localhost postfix/master: fatal: bind 127.0.0.1 port 125: Permission denied g18c Installation/Configuration 4 24th March 2009 17:39
Exim MTA dazblade Server Operation 4 16th July 2007 18:42
High Availability Samba cluster - DRBD + Heartbeat djalex Server Operation 58 25th May 2007 19:38
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs pontifex HOWTO-Related Questions 2 26th October 2005 17:54


All times are GMT +2. The time now is 04:15.


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