TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 02-08-2008, 12:12 AM   #1 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default setting up multiple sub domains on local

im using windows xp pro


i know how to set a subdomain like --> subdomain.domain.com
but how do i create another subdomain like --> sub.subdomain.domain.com ?
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 02-08-2008, 10:19 AM   #2 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Ehm that isn't possible as far I know. A SUBDOMAIN is a domain UNDER the main domain ... it cannot go sub.sub.sub.sub.sub.domain.com.

Why? w.w.w.domain.com (shitty ass str_replace stuff in the url) is the main domain, with a subdomain www. is replaced by sub.
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 02-08-2008, 01:05 PM   #3 (permalink)
Nor
The Addict
 
Join Date: Nov 2007
Posts: 282
Thanks: 61
Nor is on a distinguished road
Default

I had a sub sub domain before on my server:

forums.freehostingdomainname.somehost.com heh..
__________________
PHP/XHTML Freelancer:
Cleanscript.com v3 - Programming starting at just $5 act now!
Nor is offline  
Reply With Quote
Old 02-08-2008, 01:39 PM   #4 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Like I sad, as far as I know.

[Parent] => Domain.com
[Child] => sub.Doman.com
[Infant?!] => sub.sub.Domain.com
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 02-08-2008, 02:49 PM   #5 (permalink)
The Addict
 
sarmenhb's Avatar
 
Join Date: Jan 2008
Location: los angeles
Posts: 309
Thanks: 44
sarmenhb is on a distinguished road
Default

Quote:
Like I sad, as far as I know.

[Parent] => Domain.com
[Child] => sub.Doman.com
[Infant?!] => sub.sub.Domain.com
i doubts its an infant its just another child named child[1] or [2]
__________________
no signature set
sarmenhb is offline  
Reply With Quote
Old 02-08-2008, 03:03 PM   #6 (permalink)
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

Quote:
Originally Posted by sarmenhb View Post
i doubts its an infant its just another child named child[1] or [2]
Seriously, do you thing I was being serious? Maybe I should express more sarcasm in my posts from now on.

Let me rephrase that.

Code:
[Parent] => Domain.com
[Child] => sub.Doman.com
[Infant?!] => sub.sub.Domain.com **WARNING**SARCASM**WARNING**
__________________
"Life is a bitch, take that bitch on a ride"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
Old 02-08-2008, 03:58 PM   #7 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

You stated that you're using Windows XP Pro, but that is not enough information for us to give you a usable solution. Are you using IIS, Apache or another web server?

As for the domain "children", they're counted in levels usually. For example:
Code:
L3  L2       L1
www.mydomain.com
com is the first level domain, mydomain is the second level domain and www is the third level (sub)domain.

There is no reason why you can't have fourth (fifth, ..., twentieth, nth level subdomains) at all. For example, the following is a perfectly valid domain:
http://lets.get.up.to.domain.level.ten.for.talkphp.com/
Salathe is offline  
Reply With Quote
Old 02-08-2008, 06:25 PM   #8 (permalink)
The Acquainted
 
wGEric's Avatar
 
Join Date: Nov 2007
Posts: 166
Thanks: 0
wGEric is on a distinguished road
Default

If you are using Apache you can use mod_rewrite. You can create dynamic virtual hosts using mod_vhost_alias. mod_rewrite is probably the easiest. Something like this would work.

Code:
RewriteRule ^([^.]+)\.([^.]+)\.domain\.com(.*)     /path/to/files/$2/$1$3
With this domain, http://t1.t2.talkphp.com/, it would look for files in, /path/to/files/t2/t1



Why is it replacing my link with something that I don't want? ... Look at the status bar to see the link.

Edit by Salathe: I've fixed your link. There's an option called "Automatically retrieve titles from external links" in the advanced (not quick) reply page. It is automatically enabled, and I'm afraid I can't see an option for users to automatically disable it. It's an annoying "feature" I'd be happy to see the back of. P.S. Sorry for the long edit, I should've just replied.
__________________
Eric
wGEric is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT. The time now is 05:32 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design