Comments (3)
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.
from nginx-ui.
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
from nginx-ui.
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.
from nginx-ui.
Related Issues (20)
- Nginx does not reload when adding a site, enabling a site, or disabling a site HOT 11
- AccessLogPath not being properly retrieved in pre-release 6 HOT 1
- Error when Enable TLS HOT 14
- Reduce the items required to create the Cloudflare DNS credentials HOT 10
- Docker container only for UI HOT 3
- letsencrypt - too many registrations for this IP HOT 10
- 浏览器标签页未关闭可能导致启动过多的终端 HOT 2
- 无法正常管理streams/Unable to manage streams properly HOT 4
- Domain management page: registration, change NS and vhost
- REST/gRPC API key for user HOT 1
- Special characters in Nginx config filename i.e. Site
- ERROR HOT 1
- Cannot enable PHP in a site HOT 2
- Add logrotate to docker container
- Is it possible to simply manage NGINX on host via docker deployment? HOT 4
- Incorrect RAM and CPU Information in Dashboard for LXC HOT 6
- Better breadcrumbs to be able to navigate back to lists
- Add custom logs - more than just access and error
- 可否新增选择自动申请ecc证书或rsa证书的选项 HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nginx-ui.