Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Excerpt

Step 1. Install NginxBelow in the example, at first we are updating the local package index so that we can access to the most recent package listings. Afterwards, we are installing Nginx and any required dependencies on the server.

Code Block
languagebash
themeEmacs
$ sudo apt-get update
$ sudo apt-get install nginx

Step 2. Adjust the FirewallAllow the traffic on port 80 using Nginx HTTP. Depending on your requirements, you can also open port 443 specifying Nginx HTTPS instead (TLS/SSL encrypted traffic).

Code Block
languagebash
themeEmacs
$sudo ufw allow 'NginxHTTPNginx HTTP'

Step 3. Check your Web Serverstatus of Nginx.

Code Block
languagebash
themeEmacs
$ systemctl status nginx

Step 4. Create and customize 'server blocks'per-site "server blocks". On this step we need to create the spellcheck configuration file in the /etc/nginx/sites-available/ directory which will be later link to the sites-enabled directory.

Code Block
languagebash
themeEmacs
$ sudo cd /etc/nginx/sites-available/
$ sudo cp default spellcheck
$ sudo nano spellcheck

Excerpt Include
_includes_wsc54x_nginx_wscservice_conf
_includes_wsc54x_nginx_wscservice_conf
nopaneltrue

Step 5. Create symlink for the 'spellcheck' configuration file. Now we are linking the spellcheck configuration file from /etc/nginx/sites-available/ directory with /etc/nginx/sites-enabled/.

Code Block
languagebash
themeEmacs
$ ln -s /etc/nginx/sites-available/spellcheck /etc/nginx/sites-enabled/spellcheck

Step 6. Restart Nginx. To apply changes it is recommended to restart Nginx.

Code Block
languagebash
themeEmacs
$ sudo systemctl restart nginx


...