mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 00:09:39 -06:00
Update webserver_configuration.md
Mentioned the `<phpversion>` variable and added highlights to the nginx snippets.
This commit is contained in:
parent
6dd276df2d
commit
37d6b15bf3
@ -8,8 +8,8 @@ users by default.
|
||||
:::
|
||||
|
||||
## NGINX
|
||||
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 it in `/etc/nginx/sites-available/`, or — if on CentOS, `/etc/nginx/conf.d/`.
|
||||
You should paste the contents of the file below, replacing `<domain>` with your domain name being used and `<phpversion>` with the php version
|
||||
being used in a file called `pterodactyl.conf` and place it in `/etc/nginx/sites-available/`, or — if on CentOS, `/etc/nginx/conf.d/`.
|
||||
|
||||
### NGINX With SSL
|
||||
This configuration assumes that you will be using SSL on both the Panel and Daemons for significantly improved communication
|
||||
@ -20,13 +20,13 @@ Let's Encrypt.
|
||||
When using the SSL configuration you MUST create SSL certificates, otherwise your NGINX will fail to start. See [Creating SSL Certificates](/tutorials/creating_ssl_certificates.html) documentation page for how to create these certificates before continuing.
|
||||
:::
|
||||
|
||||
<<< @/.snippets/webservers/nginx.conf{5,11,26-27}
|
||||
<<< @/.snippets/webservers/nginx.conf{5,11,26-27,48}
|
||||
|
||||
Continue reading to the bottom of this section for the final steps with NGINX!
|
||||
|
||||
### NGINX Without SSL
|
||||
|
||||
<<< @/.snippets/webservers/nginx-nossl.conf{3}
|
||||
<<< @/.snippets/webservers/nginx-nossl.conf{3,27}
|
||||
|
||||
### Enabling Configuration
|
||||
The final step is to enable your NGINX configuration and restart it.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user