Jump to content

Nginx - SSL - TCAdmin Question


GazCBG

Recommended Posts

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

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 by Xfrag Networks
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Who's Online   0 Members, 0 Anonymous, 8 Guests (See full list)

    • There are no registered users currently online
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Terms of Use