I have managed to configure username as subdomain in nginx and php ( on localhost, I an not sure if it would work when I host it on DigitalOcean). But now I have two more queries/problems.
- Disable certain keywords like slangs, generic words etc in subdomains.
- reserve few keywords like test, beta, rc, which should be accessable only from our dev machines.
How do I achieve them?
Is it possible for nginx to access database, as I have a small table of those reserved words which I am using to disable registration on those words as username.
I am using PHP 5.6, Phalcon, nginx, Fedora (or ubuntu, We have mixed feeling on which to use on VPS).