我们可以在某些情况下使用display命令吗?
例如,如果我们只想打印事物,则其值大于7。换句话说,我们怎么能拥有
Display $( x.val> 7)
一般情况下,显示命令是否有条件?
答案 0 :(得分:1)
是的,您可以像任何赋值语句一样在Display语句上使用$条件:
server {
listen 80;
listen [::]:80;
server_name xyz.com;
root /var/www/frontend/xyz-frontend/dist;
index index.php index.html index.htm index.nginx-debian.html;
# handles the api requests
location /api {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
proxy_pass http://unix:/var/www/services/xyz/api.sock;
}
# FOR ANGULAR BUILD
location / {
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files $uri $uri/ /index.html /custom_50x.html;
}