You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, I have to manually create the directory /home/nginx/cache. However, it would be wonderful if the Nginx UI had a section for cache configuration and would automatically create the cache directory as entered.
The text was updated successfully, but these errors were encountered:
What about adding a volume section in config template? Then you can define a volume in the template, and user can set the path in the UI and it will be created if the directory is not exist.
In my understanding, by default, Nginx will create a directory if it doesn't exist. However, it will only create the last directory in the path. For example, if my cache path is
/home/nginx/cache
and the cache directory does not exist, Nginx will create it. However, if both the nginx and cache directories do not exist, Nginx will return an error:
In my understanding, by default, Nginx will create a directory if it doesn't exist. However, it will only create the last directory in the path. For example, if my cache path is
/home/nginx/cache
and the cache directory does not exist, Nginx will create it. However, if both the nginx and cache directories do not exist, Nginx will return an error:
[emerg] mkdir() No such file or directory) nginx
Yes I understand, I want to use os.MkdirAll function, which can create a directory named path, along with any necessary parents.
Caching both static and dynamic content of Nginx helps improve distribution speed for clients and reduces the load on the server.
To configure Nginx cache, I can provide a config template. However, I am encountering a small issue with configuring the cache storage directory.
Currently, I have to manually create the directory
/home/nginx/cache
. However, it would be wonderful if the Nginx UI had a section for cache configuration and would automatically create the cache directory as entered.The text was updated successfully, but these errors were encountered: