Domain

Hello can anybody help me connect me domain to me pterodactyl will be appreciated
58 Replies
Luke
Luke10mo ago
Webserver Configuration | Pterodactyl
Pterodactyl is an open-source game server management panel built with PHP, React, and Go. Designed with security in mind, Pterodactyl runs all game servers in isolated Docker containers while exposing a beautiful and intuitive UI to end users.
! Nobody
! NobodyOP10mo ago
by <domain> do the mean like pov Pterodactyl or pov Pterodactyl.io
Jake
Jake10mo ago
First things first are you using nginx or apache?
! Nobody
! NobodyOP10mo ago
nginx
Jake
Jake10mo ago
And what is your domain you want to use (Including the subdomain path if you want one)
! Nobody
! NobodyOP10mo ago
cloudbots.nl
Jake
Jake10mo ago
So your base config will want to look like this :
server {
listen 80;
server_name cloudbots.nl;

root /var/www/pterodactyl/public;
index index.html index.htm index.php;
charset utf-8;

location / {
try_files $uri $uri/ /index.php?$query_string;
}

location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }

access_log off;
error_log /var/log/nginx/pterodactyl.app-error.log error;

# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_body_timeout 120s;

sendfile off;

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_PROXY "";
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
}

location ~ /\.ht {
deny all;
}
}
server {
listen 80;
server_name cloudbots.nl;

root /var/www/pterodactyl/public;
index index.html index.htm index.php;
charset utf-8;

location / {
try_files $uri $uri/ /index.php?$query_string;
}

location = /favicon.ico { access_log off; log_not_found off; }
location = /robots.txt { access_log off; log_not_found off; }

access_log off;
error_log /var/log/nginx/pterodactyl.app-error.log error;

# allow larger file uploads and longer script runtimes
client_max_body_size 100m;
client_body_timeout 120s;

sendfile off;

location ~ \.php$ {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass unix:/run/php/php8.3-fpm.sock;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param PHP_VALUE "upload_max_filesize = 100M \n post_max_size=100M";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param HTTP_PROXY "";
fastcgi_intercept_errors off;
fastcgi_buffer_size 16k;
fastcgi_buffers 4 16k;
fastcgi_connect_timeout 300;
fastcgi_send_timeout 300;
fastcgi_read_timeout 300;
}

location ~ /\.ht {
deny all;
}
}
so it would be
nano /etc/nginx/sites-available/cloudbots.nl.conf
nano /etc/nginx/sites-available/cloudbots.nl.conf
! Nobody
! NobodyOP10mo ago
how do i go to this file
Jake
Jake10mo ago
ln -s /etc/nginx/sites-available/cloudbots.nl.conf /etc/nginx/sites-enabled/
ln -s /etc/nginx/sites-available/cloudbots.nl.conf /etc/nginx/sites-enabled/
Look at the message above
nano /etc/nginx/sites-available/cloudbots.nl.conf

** PASTE IN THE CONFIG I SENT **

CTRL + X THEN Y THEN ENTER


Create the system Link :
ln -s /etc/nginx/sites-available/cloudbots.nl.conf /etc/nginx/sites-enabled/
nano /etc/nginx/sites-available/cloudbots.nl.conf

** PASTE IN THE CONFIG I SENT **

CTRL + X THEN Y THEN ENTER


Create the system Link :
ln -s /etc/nginx/sites-available/cloudbots.nl.conf /etc/nginx/sites-enabled/
mrpixel
mrpixel10mo ago
Support pterodactyl in blueprint wow :googlyeyes:
! Nobody
! NobodyOP10mo ago
i need it lol
Jake
Jake10mo ago
If you want SSL you'll want certbot. run the command certbot if it throws an error or says something about it doesn't know what web server run the following commands
sudo apt install python3-certbot-nginx
sudo apt install python3-certbot-nginx
Then run the command certbot select your domain. Then restart nginx
sudo systemctl restart nginx
sudo systemctl restart nginx
@! Nobody Does that work for you?
! Nobody
! NobodyOP10mo ago
okay i have done that
Jake
Jake10mo ago
Now go to your domain
! Nobody
! NobodyOP10mo ago
yea it do not show me Panel then
Jake
Jake10mo ago
Have you set up your DNS? So it points to your vps?
! Nobody
! NobodyOP10mo ago
No i didnt
Jake
Jake10mo ago
You need to do that
! Nobody
! NobodyOP10mo ago
how do i do that haha
Jake
Jake10mo ago
Otherwise it won't know where its meant to go B R U H
! Nobody
! NobodyOP10mo ago
im sorry im new in this
Jake
Jake10mo ago
Who did you buy your domain from?
! Nobody
! NobodyOP10mo ago
vimexx.nl
Jake
Jake10mo ago
Log into your account there and go to where it shows your domain And send a SS of what you see (Remove sensitive info if needed)
! Nobody
! NobodyOP10mo ago
im in and im at the dns page
! Nobody
! NobodyOP10mo ago
No description
Jake
Jake10mo ago
So go to DNS
mrpixel
mrpixel10mo ago
Dns
! Nobody
! NobodyOP10mo ago
okay
Jake
Jake10mo ago
And you will see it says "record type" or something similar Choose "A"
! Nobody
! NobodyOP10mo ago
okay
! Nobody
! NobodyOP10mo ago
No description
Jake
Jake10mo ago
Now does it says lik e"path" or name? Should be 2 more text boxes
! Nobody
! NobodyOP10mo ago
No description
Jake
Jake10mo ago
So in name put @
! Nobody
! NobodyOP10mo ago
okay
Jake
Jake10mo ago
And in the content, Put your VPS's IP address
! Nobody
! NobodyOP10mo ago
okay and then save?
Jake
Jake10mo ago
Yeah
! Nobody
! NobodyOP10mo ago
done
Jake
Jake10mo ago
And will have to wait abit for it to update across the globe
! Nobody
! NobodyOP10mo ago
De DNS records zijn geupdate en binnen 2 a 4 uur actief!
Jake
Jake10mo ago
AKA DNS Propegation
! Nobody
! NobodyOP10mo ago
it takes about 2 to 4 hours so i just need to wait now?
Jake
Jake10mo ago
Yeah Just wait.
Saelman
Saelman10mo ago
Jake deserves a medal for this one.
! Nobody
! NobodyOP10mo ago
Real
Neo
Neo10mo ago
fr
! Nobody
! NobodyOP10mo ago
No description
! Nobody
! NobodyOP10mo ago
how do i fix this ://
Deliable
Deliable10mo ago
Run ls /run/php | grep "php8" and send us the results @! Nobody
! Nobody
! NobodyOP10mo ago
Hey I need to go to sleep I’m sorry I send it tomorrow I appreciate you if u can wait if u don’t have time Don’t worry it’s okay
Deliable
Deliable10mo ago
Sure!
! Nobody
! NobodyOP10mo ago
php8.1-fpm.pid php8.1-fpm.sock
Deliable
Deliable10mo ago
I'm not even sure how did you install the panel apt -y install php8.3 php8.3-{common,cli,gd,mysql,mbstring,bcmath,xml,fpm,curl,zip} Run this
! Nobody
! NobodyOP10mo ago
me provider has something i can just click a button and it installeds it fully 0 upgraded, 13 newly installed, 0 to remove and 10 not upgraded. Need to get 5392 kB of archives. After this operation, 25.3 MB of additional disk space will be used. Err:1 http://ppa.launchpad.net/ondrej/php/ubuntu focal/main amd64 php8.3-common amd64 8.3.13-1+ubuntu20.04.1+deb.sury.org+1 Temporary failure resolving 'ppa.launchpad.net'
RecuvaPumDEV
RecuvaPumDEV10mo ago
I already helped him, solved.

Did you find this page helpful?