Hey Garry,
Yeah just add 'server_name' to your config and it should work. I've added an example below for you in case you need it.
upstream tcadmin-fcgi {
ip_hash;
server unix:/home/tcadmin/Temp/fastcgi-socket-1;
}
server {
listen 80;
#access_log /home/tcadmin/Logs/nginx.log;
root /home/tcadmin/ControlPanel;
index index.html index.htm default.aspx Default.aspx;
server_name panel.domain.com;
#Static files are served by nginx
location ~ \.(css|js|txt|xml|jpg|png|gif|ico)$ {
gzip on;
gzip_min_length 1000;
gzip_proxied expired no-cache no-store private auth;
gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript;
}
#Everything else served by fastcgi server
location / {
fastcgi_index Default.aspx;
fastcgi_pass tcadmin-fcgi;
include fastcgi_params;
fastcgi_split_path_info ^(.+\.as[pmh]x)(.*)$;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_keep_conn off;
fastcgi_buffering off;
gzip off;
client_max_body_size 100m;
}
}