server {
listen 443;
server_name movie.cdydd.cn;
ssl on;
root /data/wwwroot/movie/public;
index index.html index.htm index.php;
ssl_certificate cert/1793558_movie.cdydd.cn.pem;
ssl_certificate_key cert/1793558_movie.cdydd.cn.key;
ssl_session_timeout 5m;
ssl_ciphers ECDHE-RSA-AES128-GCM-SHA256:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_prefer_server_ciphers on;
location ~* \.(eot|otf|ttf|woff)$ {
add_header Access-Control-Allow-Origin *;
}
location / {
try_files $uri $uri/ /index.php?$args;
}
location /api {
try_files $uri $uri/ /api/index.php$is_args$args;
}
location /admin {
try_files $uri $uri/ /admin/index.php$is_args$args;
}
location ~ [^/]\.php(/|$) {
#fastcgi_pass remote_php_ip:9000;
fastcgi_pass unix:/dev/shm/php-cgi.sock;
fastcgi_index index.php;
include fastcgi.conf;
}
}
yii2 https 阿里云nginx
最新推荐文章于 2023-03-07 16:34:50 发布