C:\nginx, If you are not using the default path, adjust what this says to the path you used. Inside that folder, in the
conffolder, there are two files:
rp-subdomain.conf. These are the files we are going to be working with. We're also going to use the example configs that can be found here (this link is also found in those files)
rp-subfolder.conffile. We're going to use Sonarr as an example. Using these will create a reverse proxy that looks like
rp-subdomain.conffile. We're going to use Sonarr as an example as well. Using these will create a reverse proxy that looks like
http://127.0.0.1:8989;will need to be if your Sonarr isn't running on the same machine, you will need to change out the 127.0.0.1 to the IP of the machine where it is running. If you are running it on a non-standard port this is also where to change it.
listen 443 ssl;will need to be changed and the lines that begin with ssl will need to be removed.
ssl_certificate_keyneed to be changed to where your certs are. I recommend copying them out of the
[emerg] 17144#3272: the size 10485760 of shared memory zone "SSL" conflicts with already declared size 52428800remove or comment out the
ssl_session_cache builtin:1000 shared:SSL:10m;line
C:\nginx\winacmethere is a batch script called
owi_sslupdater.bat, like the installer, that just does the certificates and won't make you reinstall the whole thing. Run through the prompts to update your certificates. You shouldn't need to do the next step if you're doing this because it already reloads NGINX.
syntax is ok. If it doesn't, don't run the next command. After running those commands, the reverse proxies should be accessible.
nginx: [emerg] could not build server_names_hash, you should increase server_names_hash_bucket_size: 32If you see this error, add
server_names_hash_bucket_size 64;to the top of your
rp-subdomain.conffile. Depending on how long your domain/subdomains are, the 64 may need to be increased.