# Nextcloud problems / questions

**URL:** https://dietpi.com/forum/t/nextcloud-problems-questions/15415
**Category:** Troubleshooting
**Created:** [29 December 2022 13:30 UTC](https://dietpi.com/forum/t/nextcloud-problems-questions/15415 "2022-12-29T13:30:27Z")
**Posts on this page:** 1
**Showing post:** 13

<div class="post-metadata">

### Author: ![hemertje](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/h/cdc98d/32.png) [@hemertje](https://dietpi.com/forum/u/hemertje)
#### Post date: [30 December 2022 08:07 UTC](https://dietpi.com/forum/t/nextcloud-problems-questions/15415/13 "2022-12-30T08:07:48Z")

</div>

> [@hemertje](#):
>
> Regarding the Cert  
> Domain and subdomain separated with a comma and run the Certbot?
> 
> [Yourdomain.com](http://Yourdomain.com), [sub.yourdomail.com](http://sub.yourdomail.com)
> 
> ?

Do I need to run the Certbot multiple times after each other for the main domain and seperate for the wanted subdomain?  
Or run it just once with the main domain and wanted subdomain seperated by , or ; ?

I get this error running the Certbot by DietPi-LetsEncrypt ‘[nextcloud.YourDomain.com](http://nextcloud.YourDomain.com)’

```auto
[FAILED] Setting was found multiple times 
The pattern $1 
server_name[[:blank:]] was found multiple times in file $3 /etc/nginx/sites-available/default 
7: server_name YourDomain.com;  
49: server_name YourDomain.com;
   
Either the pattern $1 needs to be more specific or the desired setting can appear multiple times by design and it cannot be predicted which instance to edit.  
Please retry with more specific parameter $1 or apply the setting manually:         
server_name nextcloud.YourDomain.com;

```

?

---

_[View the full topic](https://dietpi.com/forum/t/nextcloud-problems-questions/15415)._
