PowWeb Forums - The Perfect Community for the Perfect Host  

Register now to interact with over 11,000 members! Registered users have Posting Privileges, free access to Private Messaging, Email Notifications and more.

Go Back   PowWeb Community Forums > Announcements > PowWeb Announcements
User Name
Password
Register FAQ Members List Search Today's Posts Mark Forums Read

Closed Thread
 
Thread Tools
Old 2-20-04, 01:49 AM   #1
James
admin
 
Join Date: Dec 2001
Posts: 1,577
Reputation: 65
New Subdomain Mapping Support

PowWeb has added unlimited subdomain support to our webservers. You can now use any subdomain of your domain and it will automatically go to the htdocs directory inside a direcotry by the same name outside your main htdocs directory. Since PowWeb allready has a wild card DNS entry for your domain pointing everything to our webservers, you can setup any subdomain you want simply be creating a directories.

Basically this is how it will work:

http://subdomain.domain.com

will check to see if the directory

/www/u/username/subdomain/htdocs exists, if not it will send you to the normal Document Root. This will work for any pointer domains to your site as well. You can also use www.subdomain.domain.com.

You will not be able to point sub directories of pointer domains to different directories than the subdomains of your main domain... for example, if you have domain1.com and a pointer domain domain2.com:

http://subdomain.domain1.com and
http://subdomain.domain2.com

will both work and go to the same page, however they can not go to different pages. You can still however point the domain itself to another directory, or use mod_rewrite as previous customers have done to achieve this.
James is offline  
Old 2-20-04, 08:00 PM   #2
James
admin
 
Join Date: Dec 2001
Posts: 1,577
Reputation: 65
Please Note Format Change

Please note the above information has been edited to allow current customers using mod_rewrite to keep their settings. This new format will also allow you to create your own cgi-bin script alias for subdomains by createing a cgi-bin directory in the same directory your htdocs directory is for that subdomain. For example, if your subdomain is:

sub.domain.com

And you have a directory

/www/u/username/sub/htdocs

you can have a cgi-bin for that subdomain by creating

/www/u/username/sub/cgi-bin

Otherwise the subdomain will use the same cgi-bin your main site uses.
James is offline  
Closed Thread

Thread Tools

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


All times are GMT -4. The time now is 07:04 AM.


Contents ©PowWeb, Inc. ~ vBulletin, Copyright 2000-2007 Jelsoft Enterprises Limited.