html页面中调用nginx变量 [原创]已关闭评论
nginx配置如下:
location /viewimage/
{
if ($uri ~ /viewimage/([^/]*)/images/(.*))
{
set $attachName $1;
set $imageUrl images/$2;
rewrite ^/.*$ /imageborder.html break;
}
}
html页面中代码:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv=...
html, image阅读全文