Thanks for the help everyone. I've been pretty much stumped for the past day. I've created an A record for analytics.*mydomain*.com with the IP address of my server. The IP address though resolves into analytics.*mydomain*.com instead of *mydomain*.com.
Here's the pertinent server block file for analytics.*mydomain*.com. Do you guys see any issues with it?
server {
listen 80;
server_name analytics.*mydomain*.com;
return 301
https://analytics.*mydomain*.com$request_uri;}
server {
listen 443 ssl;
server_name analytics.*mydomain*.com;
root /home/forge/analytics.*mydomain*.com/public;
# FORGE SSL (DO NOT REMOVE!)
ssl_certificate /etc/nginx/ssl/analytics.*mydomain*.com/8214/server.crt;
ssl_certificate_key /etc/nginx/ssl/analytics.*mydomain*.com/8214/server.k$
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
index index.html index.htm index.php;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }
access_log off;
error_log /var/log/nginx/analytics.*mydomain*.com-error.log error;
error_page 404 /index.php;
location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/var/run/php5-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
}
location ~ /\.ht {
deny all;
}
}