I have the /etc/nginx/sites-available/default set up like this. The reason is because
I want my personal connections to a dashboard webpage to be logged to /var/log/nginx/12.34.56.789.log.
This keeps my personal connections separated from others who hit my other webpages by placing them
into the separate log access_log. I seem to be having trouble with ssl connections all going to the
12.34.56.789 server. Is there any way to point 12.34.56.789 to 443 in the first server, like
listen 12.34.56.789:443 ssl? This will error as written. Thanks.
server {
listen 12.34.56.789:80; ## listen for ipv4; this line is default and implied
listen 443 ssl;
error_page 404 /404.html;
ssl_certificate /etc/nginx/keycrt/me.net.crt;
ssl_certificate_key /etc/nginx/keycrt/me.net.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers 'ECDHE-RSA-AES128-GCM-SHA256:ECDHE-ECDSA-AES128-GCM-SHA256:...
ssl_prefer_server_ciphers on;
ssl_dhparam /etc/ssl/certs/dhparams.pem;
root /var/www;
index index.html index.htm;
location / {
access_log /var/log/nginx/12.34.56.789.log;
}
}
server {
listen 80; ## listen for ipv4; this line is default and implied
listen 443 ssl;
server_name www.me.net;
...
Edited 1 time(s). Last edit at 08/07/2015 03:11PM by battles.