I have a ssl cert on my domain but its

I have a ssl cert on my domain but its http and I can't use my panel properly
50 Replies
sin
sin3y ago
Show me your /etc/nginx/sites-enabled/pterodactyl.conf file
Deleted User
Deleted UserOP3y ago
alr
Deleted User
Deleted UserOP3y ago
No description
Deleted User
Deleted UserOP3y ago
@sin
sin
sin3y ago
Okay first of all, generate the certificate if you didnt do that already
Deleted User
Deleted UserOP3y ago
I did it generated successfully but still http
sin
sin3y ago
Second of all, add this to your server block
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
You didn't select the SSL generation in the script so you have to do it manually
Deleted User
Deleted UserOP3y ago
wait where do I put that? I'm kinda confused lol
sin
sin3y ago
inside the server block
server {
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

# ...
}
server {
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;

# ...
}
Deleted User
Deleted UserOP3y ago
so I need to put it here /etc/nginx/sites-available/default
sin
sin3y ago
/etc/nginx/sites-available/pterodactyl.conf
Deleted User
Deleted UserOP3y ago
oooh k these are different? .
sin
sin3y ago
no
Deleted User
Deleted UserOP3y ago
oh lol
Deleted User
Deleted UserOP3y ago
No description
Deleted User
Deleted UserOP3y ago
like this? wait
sin
sin3y ago
No notz like this
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
listen [::]:443 ssl ipv6only=on;
listen 443 ssl;
ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/example.org/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
inside of the server {}
Deleted User
Deleted UserOP3y ago
oh
Deleted User
Deleted UserOP3y ago
No description
Deleted User
Deleted UserOP3y ago
uh like that?
sin
sin3y ago
why did you format is so weird just copy and paste it
Deleted User
Deleted UserOP3y ago
I did it does it automatically Im on a phone and I'm using termux so it's formating it like that
sin
sin3y ago
format it like the original there will be issues
Deleted User
Deleted UserOP3y ago
ok
sin
sin3y ago
also why are you on a phone
Deleted User
Deleted UserOP3y ago
my pc is broken still doesn't work
sin
sin3y ago
what's the issue
Deleted User
Deleted UserOP3y ago
https not working u there? @sin
sin
sin3y ago
Please explain the issue
Deleted User
Deleted UserOP3y ago
I added this and I still cannot access https on my panel @sin
sin
sin3y ago
Did you restart nginx?
Deleted User
Deleted UserOP3y ago
yup
sin
sin3y ago
Nginx status?
Deleted User
Deleted UserOP3y ago
? what do I do?
sin
sin3y ago
systemctl status nginx What's the output
Deleted User
Deleted UserOP3y ago
Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2023-02-05 17:41:01 UTC; 37s ago Docs: man:nginx(8) Process: 10005 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCES S) Process: 10006 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 10007 (nginx) Tasks: 5 (limit: 28697) ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) ● nginx.service - A high performance web server and a reverse proxy server Loaded: loaded (/lib/systemd/system/nginx.service; enabled; vendor preset: enabled) Active: active (running) since Sun 2023-02-05 17:41:01 UTC; 37s ago Docs: man:nginx(8) Process: 10005 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Process: 10006 ExecStart=/usr/sbin/nginx -g daemon on; master_process on; (code=exited, status=0/SUCCESS) Main PID: 10007 (nginx) Tasks: 5 (limit: 28697) Memory: 4.2M CGroup: /system.slice/nginx.service ├─10007 nginx: master process /usr/sbin/nginx -g daemon on; master_process on; ├─10008 nginx: worker process ├─10009 nginx: worker process ├─10010 nginx: worker process └─10011 nginx: worker process Feb 05 17:41:01 instance-20230205-1321 systemd[1]: Starting A high performance web server and a reverse proxy server... Feb 05 17:41:01 instance-20230205-1321 systemd[1]: Started A high performance web server and a reverse proxy server. @sin
sin
sin3y ago
i've seen it Just to confirm, can you show me the pterodactyl.conf file again?
Deleted User
Deleted UserOP3y ago
server { listen 80; listen [::]:80; listen [::]:443 ssl ipv6only=on; listen 443 ssl; ssl_certificate /etc/letsencrypt/live/example.org/fullchain.pem; ssl_certificate_key /etc/letsencrypt /live/example.org/privkey.pem; include /etc/letsencrypt/ options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ ssl-dhparams.pem; server_name panel.scrapenodes.ga; 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.1-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; } }
sin
sin3y ago
you didnt replace the domain..
Deleted User
Deleted UserOP3y ago
lol server { listen 80; listen [::]:80; listen [::]:443 ssl ipv6only=on; listen 443 ssl; ssl_certificate /etc/letsencrypt/live/panel.scrapenodes.ga/fullchain.pem; ssl_certificate_key /etc/letsencrypt /live/panel.scrapenodes.ga/privkey.pem; include /etc/letsencrypt/ options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ ssl-dhparams.pem; server_name panel.scrapenodes.ga; 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.1-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; listen [::]:80; listen [::]:443 ssl ipv6only=on; listen 443 ssl; ssl_certificate /etc/letsencrypt/live/panel.scrapenodes.ga/fullchain.pem; ssl_certificate_key /etc/letsencrypt /live/panel.scrapenodes.ga/privkey.pem; include /etc/letsencrypt/ options-ssl-nginx.conf; ssl_dhparam /etc/letsencrypt/ ssl-dhparams.pem; server_name panel.scrapenodes.ga; 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.1-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; } }
sin
sin3y ago
the formatting is very off
Deleted User
Deleted UserOP3y ago
how bro can I just give u the access to the vps and u do it?
sin
sin3y ago
ssl_certificate_key /etc/letsencrypt/live/panel.scrapenodes.ga/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
ssl_certificate_key /etc/letsencrypt/live/panel.scrapenodes.ga/privkey.pem;
include /etc/letsencrypt/options-ssl-nginx.conf;
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
needs to be like this
Deleted User
Deleted UserOP3y ago
?
sin
sin3y ago
nope
Deleted User
Deleted UserOP3y ago
bruh hello I have done everything
Deleted User
Deleted UserOP3y ago
No description
No description
Deleted User
Deleted UserOP3y ago
still shows this or this @sin uh so I reinstalled my vps did everything again @sin I have fixed it but now wings won't work no error when I start it but still red heart @sin
sin
sin3y ago
Firewall open?
Deleted User
Deleted UserOP3y ago
yup

Did you find this page helpful?