Posted by ruriko on August 16, 2011 at 12:03pm
I'm trying to use perusio's conf files so i followed the install instructions and when I reboot nginx server I get this error:
nginx: [emerg] SSL_CTX_use_certificate_chain_file("/etc/ssl/certs/gorgeoushentai-cert.pem") failed (SSL: error:02001002:system library:fopen:No such file or directory error:20074002:BIO routines:FILE_CTRL:system lib error:140DC002:SSL routines:SSL_CTX_use_certificate_chain_file:system lib)
So I went into the /etc/ssl/certs/ directory and gorgeoushentai-cert.pem doesn't exist so how would I make it create that file?
Comments
Remove HTTPS server configuration
I did receive the same problem when I tried to create the first virtual host by coping example.com.conf. Removing HTTPS server part solved the issue for me as it was not required in my case.
## HTTPS server.server {
listen [::]:443 ssl;
server_name example.com;
limit_conn arbeit 10;
....
...
}
Yes, either 1. remove the ssl
Yes, either
1. remove the ssl portion of the configuration;
2. create a self-signed certificate that encrypts traffic but gives a browser warning that the certificate is not verified by a 3rd party agent;
3. buy a certificate or use a free certificate agency like https://www.startssl.com/ to get a verified certificate if secure communication is a priority for you.
If you're not
using SSL/TLS then just comment out/delete the secure server part. Odly enough I'm now working on a module to do all authenticated transactions over HTTPS. Brian suggestion of free certs is a good one if a Level 1 cert is enough for you. Which should be unless you're running an ecommerce site or require Level 2 or EV certs in any way.
Ok I've removed HTTPS and
Ok I've removed HTTPS and rebooted and now I can't view my site it just shows 404 Not Found. The error log says :
2011/08/17 10:13:17 [error] 3134#0: *2 "/srv/www/gorgeoushentai.com/public_html/gorgeoushentai.com/index.php" is not found (2: No such file or directory), client: 58.174.129.163, server: gorgeoushentai.com, request: "GET / HTTP/1.1", host: "gorgeoushentai.com"
2011/08/17 10:13:17 [error] 3134#0: *2 open() "/srv/www/gorgeoushentai.com/public_html/gorgeoushentai.com/index.html" failed (2: No such file or directory), client: 58.174.129.163, server: gorgeoushentai.com, request: "GET / HTTP/1.1", host: "gorgeoushentai.com"
2011/08/17 10:13:19 [error] 3134#0: *2 "/srv/www/gorgeoushentai.com/public_html/gorgeoushentai.com/index.php" is not found (2: No such file or directory), client: 58.174.129.163, server: gorgeoushentai.com, request: "GET / HTTP/1.1", host: "gorgeoushentai.com"
2011/08/17 10:13:19 [error] 3134#0: *2 open() "/srv/www/gorgeoushentai.com/public_html/gorgeoushentai.com/index.html" failed (2: No such file or directory), client: 58.174.129.163, server: gorgeoushentai.com, request: "GET / HTTP/1.1", host: "gorgeoushentai.com"
2011/08/17 10:13:21 [error] 3134#0: *2 "/srv/www/gorgeoushentai.com/public_html/gorgeoushentai.com/index.php" is not found (2: No such file or directory), client: 58.174.129.163, server: gorgeoushentai.com, request: "GET / HTTP/1.1", host: "gorgeoushentai.com"
the index.php does exist so why does it say that?
Hmm.
What's your document root? It seems that you're specifying the root incorrectly.
From the log I would guess that would be:
/srv/www/gorgeoushentai.com/public_html. Have you set$base_urlon thesettings.phpfile?oh that did the trick! got it
oh that did the trick! got it fixed now