When you auto-create subdomains on user signup does it create a new website or gives appearance of a website?

Others have answered the main points of your question, but I did want to touch on what you call the "illusion" of a website There are a few different ways to serve a given application in a domain, subdomain or directory, from static files, to a single file handling every request no matter what path or domain was requested. No method is more or less "real" than any other. The only method I would call an "illusion" would be a website masked behind another website using frames, which is generally a Really Bad Idea.(Try bookmarking on a site where the URL doesn't change as you click around.).

Others have answered the main points of your question, but I did want to touch on what you call the "illusion" of a website. There are a few different ways to serve a given application in a domain, subdomain or directory, from static files, to a single file handling every request no matter what path or domain was requested. No method is more or less "real" than any other.

The only method I would call an "illusion" would be a website masked behind another website using frames, which is generally a Really Bad Idea. (Try bookmarking on a site where the URL doesn't change as you click around. ).

Thanks for clarifying that Adam! – AAA Sep 7 '10 at 15:56.

Subdomains usually map to a specific path on the webserver. For example, Apache specifies these paths in httpd. Conf, they are called VirtualHost.An example may look like this: ServerName subdomain.domain.

Org DocumentRoot "apache2/htdocs/domain/" This entry maps the Uri subdomain.domain. Org to the path apache2/htdocs/domain/. Now, you can modify or present a page in that path, and it won't collide with other sites.

Also helpful: mod_vhost_alias. – Adam Backstrom Sep 7 '10 at 15:56 Thanks Femearef. This is definitely helpful!

– AAA Sep 7 '10 at 16:06.

The answer is quite specific to where you're signing up. There's no intrinsic connection between domains, subdomains, and hosting accounts -- you could have example. Com hosted somewhere, and subdomain.example.Com hosted somewhere totally different if you wanted.

It's all about your host, their setup, and how you/they set up DNS. You could accomplish this somewhat easily by having two sites, one for example.Com and one for *.example. Com, and have the latter base the document root on the first part of the name.

In Apache, this is as simple as VirtualDocumentRoot /path/to/site/subdomains/%1 As far as a browser would be concerned, each name represents a different site, and there'd be little or no leakage between sites if cookies are set up properly. The only problem would be FTP access, if you decide to grant that -- each user would have to be set up to have their subdir as their home dir, and ideally chrooted or something so they couldn't go and look at other people's stuff. Obviously, that will require some cooperation with/from your web host.

(At the very least, in order to use VirtualDocumentRoot, they'd need to have mod_vhost_alias running. There are other ways involving mod_rewrite, but any way you do it is going to have the same issue with FTP access. ).

Ideally I would like them to be in one place.... – AAA Sep 7 '10 at 16:06.

Your DNS record will need a wildcard for *.domain. Com this will allow others to know that jack.domain. Com leads to a valid location.

Once that is done, your . Htaccess will need to know how to handle a *.domain. Com requests.

More information on this can be found at htaccess subdomain redirect rules. The gist of it is that someone goes to jack.domain. Com your server sees this and then says, Ok we are passing jack as part of the query string so each page can see we are working under jack.

Then in your scripts you would just use that information to pull it up and display the data for jack. There are many different ways this can be setup, so it is hard to say how to tailor to your needs. But hopefully that is enough information to get you started.

Just remember, if you are testing on localhost, localhost HOST file does not allow wildcard DNS names, so for testing you have to manually add each subdomain to that host file for testing.

Because I have clients who want customizations... like let' say all users have access to photo sharing, then one client such as jack may say I want option to share and allow comments, create and activate that for me... – AAA Sep 7 '10 at 15:52 As long as your site is setup to do such requests, yes. You can say jack has access to photos but bill did not want access to photos so that shows a "not implemented" page.So when they goto jack.domain. Com/photos it shows his photo page, but bill.domain.

Com shows some form an error. A great example of this setup in action is Wordpress MU (multi-user). – Brad F Jacobs Sep 7 '10 at 15:55 Thanks!

Or something like tumblr, right, that's how they handle it too I guess.. – AAA Sep 7 '10 at 16:05.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions