mirror of
https://github.com/pterodactyl/documentation.git
synced 2025-12-10 21:05:59 -06:00
Remove webserver configuration sidebar children (#328)
Co-authored-by: Jakob Schrettenbrunner <dev@schrej.net>
This commit is contained in:
parent
1fdb49cc92
commit
de3e8c8ef5
@ -9,8 +9,8 @@ When using the SSL configuration you MUST create SSL certificates, otherwise you
|
|||||||
|
|
||||||
:::: tabs
|
:::: tabs
|
||||||
::: tab "Nginx With SSL"
|
::: tab "Nginx With SSL"
|
||||||
## NGINX With SSL
|
|
||||||
|
|
||||||
|
### NGINX With SSL
|
||||||
You should paste the contents of the file below, replacing `<domain>` with your domain name being used in a file called
|
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/`.
|
`pterodactyl.conf` and place it in `/etc/nginx/sites-available/`, or — if on CentOS, `/etc/nginx/conf.d/`.
|
||||||
|
|
||||||
@ -31,13 +31,11 @@ systemctl restart nginx
|
|||||||
:::
|
:::
|
||||||
::: tab "Nginx Without SSL"
|
::: tab "Nginx Without SSL"
|
||||||
|
|
||||||
## NGINX Without SSL
|
### NGINX Without SSL
|
||||||
|
|
||||||
You should paste the contents of the file below, replacing `<domain>` with your domain name being used in a file called
|
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/`.
|
`pterodactyl.conf` and place it in `/etc/nginx/sites-available/`, or — if on CentOS, `/etc/nginx/conf.d/`.
|
||||||
|
|
||||||
<<< @/.snippets/webservers/nginx-php7.4-nossl.conf{3}
|
<<< @/.snippets/webservers/nginx-php7.4-nossl.conf{3}
|
||||||
|
|
||||||
### Enabling Configuration
|
### Enabling Configuration
|
||||||
|
|
||||||
The final step is to enable your NGINX configuration and restart it.
|
The final step is to enable your NGINX configuration and restart it.
|
||||||
@ -53,7 +51,7 @@ systemctl restart nginx
|
|||||||
:::
|
:::
|
||||||
::: tab "Apache With SSL"
|
::: tab "Apache With SSL"
|
||||||
|
|
||||||
## Apache With SSL
|
### Apache With SSL
|
||||||
|
|
||||||
You should paste the contents of the file below, replacing `<domain>` with your domain name being used in a file called
|
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/apache2/sites-available`, or — if on CentOS, `/etc/httpd/conf.d/`.
|
`pterodactyl.conf` and place it in `/etc/apache2/sites-available`, or — if on CentOS, `/etc/httpd/conf.d/`.
|
||||||
@ -75,7 +73,30 @@ systemctl restart apache2
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
::: tab "Apache Without SSL"
|
::: tab "Apache Without SSL"
|
||||||
## Apache Without SSL
|
|
||||||
|
### Apache Without SSL
|
||||||
|
|
||||||
|
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/apache2/sites-available`, or — if on CentOS, `/etc/httpd/conf.d/`.
|
||||||
|
|
||||||
|
Note: When using Apache, make sure you have the `libapache2-mod-php` package installed or else PHP will not display on your webserver.
|
||||||
|
|
||||||
|
=======
|
||||||
|
|
||||||
|
Once you've created the file above, simply run the commands below. If you are on CentOS _you do not need to run the commands
|
||||||
|
below!_ You only need to run `systemctl restart httpd`.
|
||||||
|
|
||||||
|
```bash
|
||||||
|
# You do not need to run any of these commands on CentOS
|
||||||
|
sudo ln -s /etc/apache2/sites-available/pterodactyl.conf /etc/apache2/sites-enabled/pterodactyl.conf
|
||||||
|
sudo a2enmod rewrite
|
||||||
|
systemctl restart apache2
|
||||||
|
```
|
||||||
|
|
||||||
|
:::
|
||||||
|
::: tab "Apache Without SSL"
|
||||||
|
|
||||||
|
### Apache Without SSL
|
||||||
|
|
||||||
You should paste the contents of the file below, replacing `<domain>` with your domain name being used in a file called
|
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/apache2/sites-available`, or — if on CentOS, `/etc/httpd/conf.d/`.
|
`pterodactyl.conf` and place it in `/etc/apache2/sites-available`, or — if on CentOS, `/etc/httpd/conf.d/`.
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user