Good morning PHC Masters!
Sana po ay matulungan niyo ako sa problema ko hehehe. May PositiveSSL Certificate po kasi ako galing comodo. Sayang naman kung hindi ko magagamit . May nareceive po ako na dalawang files
Files Received:
1. example_com.crt
2. example_me.ca-bundle
Ini-concatenate ko na po sya using this command galing kay namecheap.com
Then nareceive ko po yung cert_chain.crt
Then nilagay ko po itong code na ito sa /etc/nginx/conf.d/vps.conf
Ito po yung akin
Pa help po mga master hehe. Thank you!
Sana po ay matulungan niyo ako sa problema ko hehehe. May PositiveSSL Certificate po kasi ako galing comodo. Sayang naman kung hindi ko magagamit . May nareceive po ako na dalawang files
Files Received:
1. example_com.crt
2. example_me.ca-bundle
Ini-concatenate ko na po sya using this command galing kay namecheap.com
Code:
cat *yourdomainname*.crt *yourdomainname*.ca-bundle >> cert_chain.crt
Then nareceive ko po yung cert_chain.crt
Then nilagay ko po itong code na ito sa /etc/nginx/conf.d/vps.conf
Code:
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/cert_chain.crt;
ssl_certificate_key /etc/ssl/example.key;
Code:
server {
listen 80;
ssl on;
ssl_certificate /etc/ssl/cert_chain.crt;
ssl_certificate_key /etc/ssl/swiftvpn.key;
server_name www.swiftvpn.me;
access_log /var/log/nginx/vps-access.log;
error_log /var/log/nginx/vps-error.log error;
root /home/vps/public_html;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
server {
listen 443;
ssl on;
ssl_certificate /etc/ssl/cert_chain.crt;
ssl_certificate_key /etc/ssl/swiftvpn.key;
server_name www.swiftvpn.me;
access_log /var/log/nginx/vps-access.log;
error_log /var/log/nginx/vps-error.log error;
root /home/vps/public_html;
location / {
index index.html index.htm index.php;
try_files $uri $uri/ /index.php?$args;
}
location ~ \.php$ {
include /etc/nginx/fastcgi_params;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
Pa help po mga master hehe. Thank you!