Versions Compared

Key

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

...

  1. Nginx configuration file can be edited using the following command:

    Code Block
    nano /etc/nginx/sites-enabled/default
  2. Search for the server bracket that is listening to port 443. Certbot configuration can be found here.

  3. Edit and add the locations to redirect traffic.

    Code Block
            location / {
                 
      proxy_pass http://localhost:8080;
                 
      proxy_redirect off;
           
    }

The above configuration will make Moodle accessible by using the base domain (https://exampledomain.com)

...