Difference between revisions of "Configure the TCAdmin website to run with Nginx"
(Created page with "== Install Nginx == '''The following instructions are provided for your convenience. We do not provide support for installing Nginx on your server.''' For detailed instruction...") |
|||
Line 21: | Line 21: | ||
=== Configure the control panel website === | === Configure the control panel website === | ||
− | Create the file '''/etc/nginx/conf.d/default.conf''' with | + | Create the file '''/etc/nginx/conf.d/default.conf''' with the following content. If it already exists rename the existing file to default.conf.old. |
server { | server { | ||
Line 36: | Line 36: | ||
} | } | ||
} | } | ||
+ | |||
+ | After creating the file reload the nginx settings: | ||
+ | service nginx reload |
Revision as of 14:44, 13 February 2015
Contents
Install Nginx
The following instructions are provided for your convenience. We do not provide support for installing Nginx on your server. For detailed instructions read your distro's manual.
CentOS
yum install epel-release yum install nginx
Debian/Ubuntu
apt-get install nginx
Configure Nginx to work with Mono's fastcgi server
Add the following lines to /etc/nginx/fastcgi_params (your distro's Nginx installation folder may vary)
fastcgi_param PATH_INFO ""; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
Configure the control panel website
Create the file /etc/nginx/conf.d/default.conf with the following content. If it already exists rename the existing file to default.conf.old.
server { listen 8880; #access_log /home/tcadmin/Logs/nginx.log; location / { index index.html index.htm default.aspx Default.aspx; fastcgi_index Default.aspx; fastcgi_pass 127.0.0.1:9000; include fastcgi_params; fastcgi_split_path_info ^(.+.as[pmh]x)(.*)$; fastcgi_param PATH_INFO $fastcgi_path_info; } }
After creating the file reload the nginx settings:
service nginx reload