# Uh-oh Unable to swap services. Windows 10

**URL:** https://community.localwp.com/t/uh-oh-unable-to-swap-services-windows-10/19918
**Category:** Uncategorized
**Tags:** ssl-certificates, windows-10
**Created:** [May 30, 2020, 9:34pm UTC](https://community.localwp.com/t/uh-oh-unable-to-swap-services-windows-10/19918 "2020-05-30T21:34:29Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![shivapoudel](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/shivapoudel/32/23883_2.png) [@shivapoudel](https://community.localwp.com/u/shivapoudel)
#### Post date: [May 30, 2020, 9:34pm UTC](https://community.localwp.com/t/uh-oh-unable-to-swap-services-windows-10/19918/1 "2020-05-30T21:34:29Z")

</div>

![SharedScreenshot](https://us1.discourse-cdn.com/flex019/uploads/lwpforums/original/2X/2/2237075134ef32e4e51a4ed87497d7c4e1030ec1.jpeg)

Can somebody help me? I am receiving this error during Web server swap from Nginx to Apache. Also, if I close Local then in `sites.json` Nginx config is removed but apache config is never added, due to which I have to again add this below snippet by looking at the port.

```json
"nginx": {
	"version": "1.16.0",
	"type": "lightning",
	"role": "http",
	"ports": {
		"HTTP": [
			10004 // This may vary stating it for the first site.
		]
	}
}

```

Additionally, SSL should be auto trusted, and site URL and Home page URL must be indexed with HTTPS so that when we click **Admin URL** OR **Site URL** in Local it should redirect accordingly to SSL pages.

CC @flycrum

---

<div class="post-metadata">

### Author: ![Shinseina](https://avatars.discourse-cdn.com/v4/letter/s/9de0a6/32.png) [@Shinseina](https://community.localwp.com/u/Shinseina)
#### Post date: [June 4, 2020, 2:23pm UTC](https://community.localwp.com/t/uh-oh-unable-to-swap-services-windows-10/19918/2 "2020-06-04T14:23:10Z")

</div>

Hello,

I have the same problem but it was when I switched from Apache to Nginx. What is the `sites.json` file that you’re talking about ? I can’t find it on my computer. Does this part of code solved your problem ?
