subdomains

Best way for allowing subdomain session cookies using Tomcat

By default tomcat will create a session cookie for the current domain. If you are on www.example.com, your cookie will be created for www.example.com (will only work on www.example.com). Whereas for example.com it will be created for .example.com (desired behaviour, will work on any subdomain of example.com as well as example.com itself...

subdomains w/o TLD

How do i set up a subdomain w/o a TLD? i have this set under my main config <VirtualHost *:80> ServerName bbs.67.777.777.777 #fake bc my server can easily be hacked ATM :( DocumentRoot /var/www/phpBB </VirtualHost> when i goto bbs.serveripaddress i get a Address Not Found error. if i put that above my main config it still does...

Wildcard Subdomain Setup on Windows 2003

I am trying to setup an internal staging server for a web application that relies on wildcard subdomains. I would appreciate some guidance in how to setup wildcard subdomains with Windows Server 2003 DNS. (I don't seem to be able to enter "*.domain.tld. IN A 1.2.3.4" directly) Thanks. More information: I have a zone MY.LAN, under...

Create Subdomains on the fly with .htaccess (PHP)

I am looking to create a system which on signup will create a subdomain on my website for the users account area. e.g. johndoe.website.com I think it would be something to do with the .htaccess file and possibly redirecting to another location on the website? I don't actually know. But any information to start me off would be greatly ...

will the use of multiple subdomains speed up my website?

i am considering moving my images to a subdomain on my website, and i read somewhere that moving the script to a different one would make it even faster! is it really true? or should i just leave it at what it is if i am not considering a real CDN? ...

Routing image requests to separate subdomains

First, a bit of background info: The HTTP 1.1 specification, circa 1999, recommends that browsers and servers limit parallel requests to the same hostname to two. (more) If you carry on reading that article the author suggests "fooling" browsers by having multiuple subdomains all pointing to the same thing. If I was to serve my im...

SubDomains for blogs

Am I creating competitors for my site by creating subdoamins... becos Google treats subdomains as individual domains... so, am I going to create/build competitors for my website.... I want to go for subdomains.. please explain me the drawbacks and at the same time advantages of having subdomains... One more question... subfolders are m...

Why are some websites spread across www2, www3 sub-domains whilst others manage scaling without it?

I know it's to do with having a variety of load balancing servers, but why do some sites make use of differently named "www" sub domains (www2.somesite.com, www3.somesite.com etc) where as other can be perfectly massive without doing this - ie all traffic is to www.hugesite.com. Does it indicate certain architectural decisions / have a ...

PHP setcookie() for domain but NOT subdomains

Is there any way to set a cookie that is not readable on subdomains? In other words, have the cookie available on domain.com, but not www.domain.com or xyz.domain.com. //this is what i'm "intending"... setcookie($name,$value,$expires,'/','domain.com'); //however, this is how it behaves: setcookie($name,$value,$expires,'/','.domain.com')...

Recommendation for handling navigation through subdomains

I'll like an opinion on the following issue. I'm currently developing an application in which accounts are managed by subdomains (foo.example.com,bar.example.com...). I was wondering which is the best way to enable users to navigate through different accounts. The options I have in mind are: 1) Make each user leave their account subdoma...

How to get personalized sub-domains for users and make them work?

Say I have a site hosted on example.com, now I want each of my registered user to get a personalized sub-domain, e.g Alice should normally gets alice.example.com as her sub-domain. While actually alice.example.com gets data from example.com/user/alice. How to implement this mechanism? I see lots of sites are working in this way. I wonder...

Django: how to store subdomain-based authentication usernames?

I need to create a subdomain based authentication system, like the one 37signals, freshbooks, codebase use. That is, each subdomain of my main application needs to have its own username namespace. I would like to keep as much as possible of the django authentication system. What is a good way to store the username? In particular, it sh...

Web application Development - Subdomain

Hi everyone, I'm currently at the very early design stage of building a web app that will be used by companies. Each company will have many departments and each department many staff. Each department will manage its own application with staff logging onto the application. There is the possibility that staff across different organisati...

Django to use different settings.py file based on subdomains

How can Django use different settings.py file based on subdomains. Can these utilities ("django-admin", "python manage.py") still be used if there were different settings connecting to different databases. ...

Creating Subdomains Programmatically

I am looking for a solution to create subdomains pragmatically in ASP.NET, ASP.NET MVC and PHP. Specifically, a user profile page should resolve for both: www.domain.com/profilename or http://profilename.domain.com. ...

Single Sign On with SubDomains

Please I would like to know how to implement Single Sign On across subdomains running on a mixture of programming platforms, asp.net and php? ...

mod_rewrite: hierarchical sub-domains into hierarchical sub-directories

Hello. Consider the following problem, please. I have got domain.tld with hierarchical sub-domains like the following: a.domain.tld b.a.domain.tld c.b.a.domain.tld ... etc. There is also hypothetical directory structure in the web-root: /foo /a. /a./b. /a./b./bar /a./b./c. ... etc. I would like to achieve such rewrite that would ...

How do I create an admin subdomain to manage subdomains in Rails

I am using AuthLogic and the subdomain method that dhh covered in this blog post, everything is working great, and as expected. What I'm trying to figure out is how to create a subdomain like 'admin' or 'host' that will have a user authenticated from AuthLogic (this may be trivial and unnecessary to mention) that will manage the subdomai...

How do you create subdomains using PHP? Is is possible on shared hosting?

I'm interested to create subdomains on the fly directly from php. For example when an user create a new page I want that page to be newpage.mydomain.com. Is that possible without changing the php or apache configuration files (supposing I'm using a shared hosting account). Later Edit: I'm talking about my domain, and I have full access ...

dynamic sub-domain creation with PHP in a linux based server

I want to create sub-domains using PHP on the fly. Suppose a user registers himself as a name "ABC". Then I want to create a sub-domain named 'ABC.mydomain.com' automatically by PHP. I'm using a linux based server. Would anyone point me to the right direction? ...