0
- 私、私のホスト上でセットアップのnginx HTTPSにしようとしますが、エラーを取得します。nginxのHTTPSエラー
nginx: [emerg] "location" directive is not allowed here in /etc/nginx/conf.d/default.conf:7
nginx: configuration file /etc/nginx/nginx.conf test failed
コンファレンス:
server {
listen 443 ssl;
server_name quickseed.me;
ssl_certificate /etc/letsencrypt/live/quickseed.me/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/quickseed.me/privkey.pem;
}
root /var/www/html/;
index index.php index.html index.htm index.nginx-debian.html;
location /phpmyadmin {
root /usr/share/;
index index.php;
try_files $uri $uri/ =404;
location ~ ^/phpmyadmin/(doc|sql|setup)/ {
deny all;
}
location ~ /phpmyadmin/(.+\.php)$ {
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
誰もがこの問題を解決する方法上の任意のアイデアを持っています?