Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

234
Views
How does Nginx 1.21.0 use variables in ssl_certificate?

Example URL:ssvwv.com

set $a ssvwv.com;
ssl_certificate /www/$a/fn.pem;
I see in the error log that the path becomes:/www//fn.pem
Correct should be:/www/ssvwv.com/fn.pem
Nginx 1.21.0 version variable is invalid?

Since version 1.15.9 Variables can be used
Using the $ssl_server_name.crt variable to the file name is invalid.
example:/www/ssvwv.com/$a.pem
error result:/www/ssvwv.com/.pem

variable example:$ssl_server_name Variable value:www.ssvwv.com
path example:/www/ssvwv.com/$ssl_server_name.pem
error result:/www/ssvwv.com/.pem
The test is invalid in the path variable.

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

ssl_certificate is set inside your blockserver

See an example below

server {
    listen 443;
    ssl on;
    ssl_certificate /etc/ssl/ssl-bundle.crt;
    ssl_certificate_key /path/to/your_private.key;
    root /path/to/webroot;
    server_name your_domain.com;
}
access_log /var/log/nginx/nginx.vhost.access.log;
    error_log /var/log/nginx/nginx.vhost.error.log;
    location / {
        root /var/www/;
        root  /home/www/public_html/your.domain.com/public/;
        index index.html;
    }
}
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!