LII Editors Guide
English
English
  • Judgments
    • Upload a judgment
    • Overturned and upheld
    • Delete a judgment
    • Replace a source file
    • Add multiple case numbers
    • Attach files
    • Add a judge
    • Judgments guide
      • Principles of law publication
      • Collection Development Principles
      • Case naming guidelines
      • Citation
        • Introduction to the Medium Neutral Citation
        • Construction of the MNC
        • Case naming guidelines
        • Court Designators for courts in the GhaLII network
      • Paragraph numbering
  • User management
    • How to reset your password
    • Add users
      • Add multiple users
    • Assigning Permissions
    • Delete users
  • MANAGING DOCUMENTS
    • Bills
    • Journals
    • Unpublish/hide a document
    • Restricted Content
  • Site Admin
    • Courts
    • Matter Types
    • Articles (blog posts)
  • System management
    • System architecture
    • Logs
    • Process management
    • Configure nginx
    • Renew SSL certificate
    • Block an IP address
Powered by GitBook
On this page
  • Config file location
  • Additional config files
  • Further reading
  1. System management

Configure nginx

How to make additional configuration changes to nginx.

PreviousProcess managementNextRenew SSL certificate

Last updated 7 months ago

The website uses nginx as a reverse proxy. This means that requests from the Internet are served by nginx, which forwards them to Django, and then returns the response to the user.

Config file location

Dokku places a single config file into the main nginx config directory at /etc/nginx/conf.d/dokku.conf.

That file loads individual config files for each dokku app.

The nginx configuration used for the website is stored at /home/dokku/APP/nginx.conf.

Additional config files

The app's main nginx configuration file dynamically includes the files /home/dokku/APP/nginx.conf.d/*.conf . These files are included as part of the server nginx configuration block.

You can put additional files into this directory to customise the nginx configuration. Once you have added a file or made changes, you must tell nginx to reload its configuration.

First, ask nginx to test that the configuration is valid:

sudo service nginx configtest

If that shows an error, look at the log output in /var/log/nginx/error.log for more details.

If nginx is happy with the changes, tell it to re-load its configuration:

sudo service nginx reload

Further reading

See Dokku's documentation on for more details.

Nginx Proxy Configuration