묻고답하기
NGINX 443 포트 에러쫌 해결 해 주세요/.
2012.12.22 13:12
NGINX설정중 SSL을 사용하기 위하여 이렇게 준비를 했으나 에러가 나는데 이유가 뭘까요?
########## abc ##########
server {
listen 80;
listen 443 ssl;
server_name abc.com;
server_name www.abc.com
root /home/abc/public_html;
ssl on;
ssl_certificate /etc/nginx/ssl.d/abc/ssl.pem;
ssl_certificate_key /etc/nginx/ssl.d/abc/ssl.key;
ssl_prefer_server_ciphers on;
ssl_ciphers HIGH:!aNULL:!MD5;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 SSLv2 SSLv3;
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/tmp/php-fpm.sock;
fastcgi_read_timeout 12;
fastcgi_index index.php;
fastcgi_intercept_errors on;
fastcgi_ignore_client_abort on;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
location ~ \$ {
limit_rate 5m; #대역폭
#limit_rate_after 100m; #용량
}
#Rool Setup
include modules/xe.conf; #Xpressengine RewriteMode Rool;
#error static page&log
#error_page 404 /404.html;
#error_page 500 /500.html;
#access_log /home/abc/logs/access.log;
#error_log home/abc/app/logs/error.log;
}
댓글 1
-
푸시아
2012.12.22 13:57
-
CM(OEZ)
2012.12.22 14:26
당연히 열어두었죠 ㅠㅠ -
CM(OEZ)
2012.12.22 14:27
########## abc ########## server { listen 80; server_name abc.com; server_name www.abc.com; root /home/abc/public_html; location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/tmp/php-fpm.sock; fastcgi_read_timeout 12; fastcgi_index index.php; fastcgi_intercept_errors on; fastcgi_ignore_client_abort on; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ \$ { limit_rate 5m; #대역폭 #limit_rate_after 100m; #용량 } #Rool Setup include mod.d/xe.conf; #Xpressengine RewriteMode Rool; rewrite ^/(.*\.(css|js))$ /.min/index.php?f=$1 last; #Xpressengine Minify RewriteMode Rool; #error static page&log #error_page 404 /404.html; #error_page 500 /500.html; #access_log /home/myhome/app/logs/access.log; #error_log /home/myhome/app/logs/error.log; } ########## abc ########## server { listen 443; server_name abc.com; server_name www.abc.com; root /home/abc/public_html; ssl on; ssl_certificate /etc/nginx/ssl.d/abc/ssl.pem; ssl_certificate_key /etc/nginx/ssl.d/abc/ssl.key; ssl_prefer_server_ciphers on; ssl_ciphers HIGH:!aNULL:!MD5; ssl_protocols TLSv1 TLSv1.1 TLSv1.2 SSLv2 SSLv3; location ~ \.php$ { try_files $uri =404; fastcgi_pass unix:/tmp/php-fpm.sock; fastcgi_read_timeout 12; fastcgi_index index.php; fastcgi_intercept_errors on; fastcgi_ignore_client_abort on; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; include fastcgi_params; } location ~ \$ { limit_rate 5m; #대역폭 #limit_rate_after 100m; #용량 } #Rool Setup include mod.d/xe.conf; #Xpressengine RewriteMode Rool; rewrite ^/(.*\.(css|js))$ /.min/index.php?f=$1 last; #Xpressengine Minify RewriteMode Rool; #error static page&log #error_page 404 /404.html; #error_page 500 /500.html; #access_log /home/myhome/app/logs/access.log; #error_log /home/myhome/app/logs/error.log; } -
CM(OEZ)
2012.12.22 14:27
그래서 포기하고 기존방식인 아래 방법으로 바꾸었어요 ㅠㅠ
서버에서 포트는 열어 두셨나요?