diff --git a/.snippets/webservers/Caddyfile b/.snippets/webservers/Caddyfile index c8368ef76..4de048cd6 100644 --- a/.snippets/webservers/Caddyfile +++ b/.snippets/webservers/Caddyfile @@ -6,6 +6,7 @@ } } +# Replace the example with your domain name or IP address { root * /var/www/pterodactyl/public diff --git a/.snippets/webservers/Caddyfile-nossl b/.snippets/webservers/Caddyfile-nossl index 71e0ae253..01084e052 100644 --- a/.snippets/webservers/Caddyfile-nossl +++ b/.snippets/webservers/Caddyfile-nossl @@ -6,6 +6,7 @@ } } +# Replace the example with your domain name or IP address :80 { root * /var/www/pterodactyl/public diff --git a/.snippets/webservers/apache-nossl.conf b/.snippets/webservers/apache-nossl.conf index 22a4a5677..61c9943e1 100644 --- a/.snippets/webservers/apache-nossl.conf +++ b/.snippets/webservers/apache-nossl.conf @@ -1,4 +1,5 @@ + # Replace the example with your domain name or IP address ServerName DocumentRoot "/var/www/pterodactyl/public" diff --git a/.snippets/webservers/apache.conf b/.snippets/webservers/apache.conf index aa92505f6..8ec77b600 100644 --- a/.snippets/webservers/apache.conf +++ b/.snippets/webservers/apache.conf @@ -1,4 +1,5 @@ + # Replace the example with your domain name or IP address ServerName RewriteEngine On @@ -7,6 +8,7 @@ + # Replace the example with your domain name or IP address ServerName DocumentRoot "/var/www/pterodactyl/public" diff --git a/panel/1.0/webserver_configuration.md b/panel/1.0/webserver_configuration.md index e035d5637..03a23980e 100644 --- a/panel/1.0/webserver_configuration.md +++ b/panel/1.0/webserver_configuration.md @@ -19,7 +19,7 @@ rm /etc/nginx/sites-enabled/default 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/`. -<<< @/.snippets/webservers/nginx-php8.3.conf{5,11,26-27} +<<< @/.snippets/webservers/nginx-php8.3.conf{4,11,26-27} ### Enabling Configuration @@ -71,7 +71,7 @@ Now, you should paste the contents of the file below, replacing `` with Note: When using Apache, make sure you have the `libapache2-mod-php8.3` package installed or else PHP will not display on your webserver. -<<< @/.snippets/webservers/apache.conf{2,10,24-25} +<<< @/.snippets/webservers/apache.conf{3,12,26-27} ### Enabling Configuration @@ -99,7 +99,7 @@ Now, you should paste the contents of the file below, replacing `` with Note: When using Apache, make sure you have the `libapache2-mod-php8.3` package installed or else PHP will not display on your webserver. -<<< @/.snippets/webservers/apache-nossl.conf{2} +<<< @/.snippets/webservers/apache-nossl.conf{3} ### Enabling Configuration @@ -127,7 +127,7 @@ Then continue with an editor of your choice to write the config. You should paste the contents of the file below, replacing `` with your domain name. -<<< @/.snippets/webservers/Caddyfile{9} +<<< @/.snippets/webservers/Caddyfile{10} ::: tip If you are using Cloudflare DNS in proxy mode, refer to [this tutorial](/tutorials/creating_ssl_certificates.html#method-3:-caddy-(using-cloudflare-api)), to see how to configure Caddy to use DNS challenge for obtaining SSL certificates. @@ -157,7 +157,7 @@ You should paste the contents of the file below, replacing `` with your The only two differences are that we have suffixed the `` with `:80` and in the global config at `servers` directive, we have changed the port from `:443` to `:80`. -<<< @/.snippets/webservers/Caddyfile-nossl{9} +<<< @/.snippets/webservers/Caddyfile-nossl{10} ### Enabling Configuration