2016-12-13 41 views
1

我使用iRedMail設置郵件服務器並安裝並運行了所有內容。現在嘗試使用certbot-auto客戶端更改Lets Encrypt的自簽名證書。我已經加入iRedMail SSL使用允許加密certbot-auto

location ~ /.well-known { 
    allow all; 
} 

到/etc/nginx/templates/misc.tmpl這樣

location ~ /.well-known { 
    allow all; 
} 

# Deny all attempts to access hidden files such as .htaccess. 
#location ~ /\. { deny all; } 

# Handling noisy messages 
location = ^/favicon.ico { access_log off; log_not_found off; } 
location = ^/robots.txt { log_not_found off; access_log off; allow all; } 

然而,當我重新啓動nginx的和瀏覽到URL,我得到一個404,和certbot-AUTO也報告一個404.

我已經把它放在規則以上來限制對隱藏文件的訪問,所以這應該工作。

任何想法將大規模讚賞。提前致謝。

回答

1
location /.well-known { 
alias /opt/www/iredadmin/.well-known/; 
} 
+0

這是正確的輸入 –