livefree wrote:
Hey Guys,
If I could be so rude to hijack this post as after the same information.
I'm on NGINX with Ubuntu 12.04, PHP 5.3, DNS instructions would be good for me (assuming it's via the Linode DNS manager?).
Thanks in advance,
Paul
DNS Wise it's simply creating a new A Record, set the subdomain you want as name (if you want sub.domain.tld, use sub as value) and the IP to your Linode's IP. You can add 2, one with IPv4 IP, other with IPv6, if you set up your nginx to allow IPv6 traffic.
Nginx wise, assuming you use apt-packages,
1. copy current config, e.g.: cp /etc/nginx/sites-available/0-default /etc/nginx/sites-available/1-sub.domain.tld
2. Edit 1-sub.domain.tld, change values:
- server_name sub.domain.tld;
- access_log
- error_log
- root
^ use own values for logs/root
Do you use PHP-FPM? That might require some extra settings for the PHP Pool.