0
說我有在/etc/nginx/conf.d/myscript.conf
如何從bash命令行禁用nginx中的位置?
server {
listen 8080;
server_name _;
location = /a {...} # <-- needs to be disabled during maintainence
location = /b {...}
location = /c {...} # <-- needs to be enabled during maintainence
}
對於maintainence我需要禁用/a
位置,做一些命令\部署一個配置,然後啓用/a
位置回來。
這可以通過bash自動完成,無需編程配置修改?