What issue or error are you experiencing?
I’m trying to customize the nginx config for a new site, but every time I restart the site, the config gets overwritten removing all my customizations.
I’m trying to add this:
# Block direct access to private portal uploads.
location ^~ /wp-content/uploads/private/ {
return 404;
}
In order to protect som private uploads handled by a custom plugin.
What steps can be taken to replicate the issue? Feel free to include - screenshots, videos, etc
- Run the latest LocalWP (9.2.9) on Mac Silicon.
- Add the change above to the nginx config file of a site.
- Restart the site in order for the change to take effect.
The nginx config file is overwritten and all customizations are removed.
System Details
-
Local Version: 9.2.9 (ARM64)
-
Operating System (OS) and OS version: MBP M1 - Sonoma 14.2.1 (23C71)
Local Logs
Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
local-lightning-verbose.log (783.6 KB)
Security Reminder
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.