Re: Web application architecture (subdomain vs. sub directory)
| From: | Per Jessen | Date: | Thu, 26 Aug 2010 06:08:21 +0000 |
| Subject: | Re: Web application architecture (subdomain vs. sub directory) | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307679@lists.php.net to get a copy of this message | ||
Tim Martens wrote:
> Thanks for all your answers. To clarify my question, I'm looking for
> advice regarding how best to set up users for a web app, e.g.,
> username.myapp.com vs myapp.com/username and the pros and cons of
each.
Using username.myapp.com means defining that name in your DNS and having
a separate virtual host definition in your apache config.
Using myapp.com/username means having one virtual host, and no extra DNS
records.
One is not necessarily better or worse than the other - to me it's
mostly about presentation and I would go for the myapp.com/username
option. This (in my mind) puts "username" a level lower than "myapp",
whereas username.myapp.com does the opposite.
--
Per Jessen, Zürich (17.7°C)