通过web 访问指定的应用日志
# cat 10.4.4.185.conf
server {
listen 80;
server_name 10.4.4.185;
allow 10.0.0.0/8;
deny all;
location /wzhouhui-m_logs/ {
autoindex on;
alias /data/www/wzhouhui/m/logs/;
}
}
通过web 访问指定的应用日志
# cat 10.4.4.185.conf
server {
listen 80;
server_name 10.4.4.185;
allow 10.0.0.0/8;
deny all;
location /wzhouhui-m_logs/ {
autoindex on;
alias /data/www/wzhouhui/m/logs/;
}
}
本文标题:nginx alias的应用
本文链接:https://www.haomeiwen.com/subject/dzymsftx.html
网友评论