首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >Linux一键安装web环境包安装的环境,无法安装ssl证书?

Linux一键安装web环境包安装的环境,无法安装ssl证书?

提问于 2017-12-28 15:00:33
回答 4关注 0查看 1.4K

如上图所示,安全组已经打开了端口,密钥和证书也放进去了,conf文件在同目录,但是用指令检测443端口不出来(没有443端口),请问接下来我该怎么做?

user www www;

worker_processes 2;

error_log /alidata/log/nginx/error.log crit;

pid /alidata/server/nginx/logs/nginx.pid;

#Specifies the value for maximum file descriptors that can be opened by this process.

worker_rlimit_nofile 65535;

events

{

use epoll;

worker_connections 65535;

}

http {

include mime.types;

default_type application/octet-stream;

#charset gb2312;

server_names_hash_bucket_size 128;

client_header_buffer_size 32k;

large_client_header_buffers 4 32k;

client_max_body_size 8m;

sendfile on;

tcp_nopush on;

keepalive_timeout 60;

tcp_nodelay on;

fastcgi_connect_timeout 300;

fastcgi_send_timeout 300;

fastcgi_read_timeout 300;

fastcgi_buffer_size 64k;

fastcgi_buffers 4 64k;

fastcgi_busy_buffers_size 128k;

fastcgi_temp_file_write_size 128k;

gzip on;

gzip_min_length 1k;

gzip_buffers 4 16k;

gzip_http_version 1.0;

gzip_comp_level 2;

gzip_types text/plain application/x-javascript text/css application/xml;

gzip_vary on;

#limit_zone crawler $binary_remote_addr 10m;

log_format '$remote_addr - $remote_user [$time_local] "$request" '

'$status $body_bytes_sent "$http_referer" '

'"$http_user_agent" "$http_x_forwarded_for"';

include /alidata/server/nginx/conf/vhosts/*.conf;

}

上面是nginx.conf配置文件,vhosts文件夹里的conf文件都包含在里面了,下面是vhosts文件夹原本80端口的配置文件,这种情况下该怎么改?

#server {

# listen 80;

# server_name localhost;

# index index.html index.htm index.php;

# root /alidata/www/aaa;

# location ~ .*\.(php|php5)?$

# {

# #fastcgi_pass unix:/tmp/php-cgi.sock;

# fastcgi_pass 127.0.0.1:9000;

# fastcgi_index index.php;

# include fastcgi.conf;

# }

# location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$

# {

# expires 30d;

# }

# location ~ .*\.(js|css)?$

# {

# expires 1h;

# }

# #α¾²Ì¬¹æÔò

# include /alidata/server/nginx/conf/rewrite/phpwind.conf;

# access_log /alidata/log/nginx/access/phpwind.log;

#}

server {

listen 443;

server_name www.aaa.com;

ssl on;

ssl_certificate /alidata/server/nginx-1.4.4/conf/vhosts/1_www.aaa.com_bundle.crt;

ssl_certificate_key /alidata/server/nginx-1.4.4/conf/vhosts/2_www.aaa.com.key;

ssl_session_timeout 5m;

ssl_protocols TLSv1 TLSv1.1 TLSv1.2;

ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:HIGH:!aNULL:!MD5:!RC4:!DHE;

ssl_prefer_server_ciphers on;

location / {

root /alidata/www/aaa/;

index index.html index.htm;

}

include /alidata/server/nginx/conf/rewrite/phpwind.conf;

access_log /alidata/log/nginx/access/phpwind.log;

}

相关文章

相似问题

相关问答用户
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档