A collection of Nginx example configuration files.
Go to file
allan 065e7c5cce Logic changes 2024-02-27 08:43:48 +01:00
README.md Initial commit 2024-02-21 10:34:42 +01:00
dokuwiki.80.conf Initial commit 2024-02-21 10:34:42 +01:00
dokuwiki.443.conf Initial commit 2024-02-21 10:34:42 +01:00
example.80.conf Initial commit 2024-02-21 10:34:42 +01:00
example.443.conf Initial commit 2024-02-21 10:34:42 +01:00
focalboard.80.conf Initial commit 2024-02-21 10:34:42 +01:00
focalboard.443.conf Initial commit 2024-02-21 10:34:42 +01:00
gitea.80.conf Logic changes 2024-02-27 08:43:48 +01:00
gitea.443.conf Logic changes 2024-02-27 08:43:48 +01:00
wordpress.80.conf Initial commit 2024-02-21 10:34:42 +01:00
wordpress.443.conf Initial commit 2024-02-21 10:34:42 +01:00
zabbix.80.conf Initial commit 2024-02-21 10:34:42 +01:00
zabbix.443.conf Initial commit 2024-02-21 10:34:42 +01:00

README.md

Nginx configuration examples

Prerequisites

An Ubuntu 22.04 server with Nginx and Php-Fpm 8.1
Nginx with Php-Fpm 8.1 can be installed from [Here]

IMPORTANT These configuration examples relay on some specific Nginx configuration settings I created.
This means the directory nginxsnippets I created should be present in the directory /etc/nginx

This can be accomplished like this

git clone https://git.x-files.dk/ubuntu-server-files/nginxsnippets.git /etc/nginx/nginxsnippets

The main nginx.conf is supposed to look something like the one I use [Here]. And the sites-enabled is supposed to look something like this one [Here]. Once you have this sorted out the configuration examples should make sence.

Benefeits

Setting up Nginx like this makes a lot of sense since you will end up with a much cleaner code when creating configurations for your sites.

More guides can be found on [wiki.xfiles.dk]

Last tested

January 12th 2024 on Ubuntu 22.04.