Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions panel/1.0/webserver_configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 `<domain>` with your domain name being used in a file called
`pterodactyl.conf` and place the file in `/etc/nginx/sites-available/`, or &mdash; if on RHEL, Rocky Linux, or AlmaLinux, `/etc/nginx/conf.d/`.

Expand All @@ -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 `<domain>` with your domain name being used in a file called
`pterodactyl.conf` and place the file in `/etc/nginx/sites-available/`, or &mdash; if on RHEL, Rocky Linux, or AlmaLinux, `/etc/nginx/conf.d/`.

Expand Down