From 966992db995d2e3584f80a85fa4b59f19c6b6efe Mon Sep 17 00:00:00 2001 From: Kasova-code Date: Fri, 26 Sep 2025 12:08:56 +0500 Subject: [PATCH] Update webserver_configuration.md MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added a note in both “Nginx With SSL” and “Nginx Without SSL” sections explaining that on Ubuntu systems it may be necessary to run `sudo usermod -aG www-data nginx` to ensure proper permissions. --- panel/1.0/webserver_configuration.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/panel/1.0/webserver_configuration.md b/panel/1.0/webserver_configuration.md index 03a23980e..b67a75c13 100644 --- a/panel/1.0/webserver_configuration.md +++ b/panel/1.0/webserver_configuration.md @@ -16,6 +16,14 @@ First, remove the default NGINX configuration. rm /etc/nginx/sites-enabled/default ``` +::: tip +If you using Ubuntu systems you may also need to add the `nginx` user to the `www-data` group to ensure proper file permissions: + +``` bash +sudo usermod -aG www-data nginx +``` +::: + Now, you should paste the contents of the file below, replacing `` with your domain name being used in a file called `pterodactyl.conf` and place the file in `/etc/nginx/sites-available/`, or — if on RHEL, Rocky Linux, or AlmaLinux, `/etc/nginx/conf.d/`. @@ -41,6 +49,14 @@ First, remove the default NGINX configuration. rm /etc/nginx/sites-enabled/default ``` +::: tip +If you using Ubuntu systems you may also need to add the `nginx` user to the `www-data` group to ensure proper file permissions: + +``` bash +sudo usermod -aG www-data nginx +``` +::: + Now, you should paste the contents of the file below, replacing `` with your domain name being used in a file called `pterodactyl.conf` and place the file in `/etc/nginx/sites-available/`, or — if on RHEL, Rocky Linux, or AlmaLinux, `/etc/nginx/conf.d/`.