GazCBG Posted January 28, 2016 Share Posted January 28, 2016 Hi, Just been reading the docs about Nginx and SSL and have a question about it. In the docs it gave a config for Nginx, for the Control Panel and it is recommended to run Nginx if you want to have SSL. In the config for Nginx can a domain be added (by using: server_name), so you go to xyz.com or what ever for the control panel? The reason for the domain question is, when I have ordered SSL certificates in the past they require it. Docs Link: http://help.tcadmin.com/Configure_the_TCAdmin_website_to_run_with_Nginx Link to comment Share on other sites More sharing options...
Xfrag Networks Posted January 28, 2016 Share Posted January 28, 2016 (edited) 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; } } Edited January 28, 2016 by Xfrag Networks Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now