标签:ati linux目录 location size html data roo lin server
http { ...... autoindex on; autoindex_exact_size off; autoindex_localtime on; server { listen 80; ...... } server { listen 81; server_name dev168.pcauto.com.cn localhost 127.0.0.1 ; location ~ ^/ { root /data; } error_page 500 502 503 504 /50x.html; location = /50x.html { root html; } } .... }
然后就可以通过
dev168.pcauto.com.cn:81/
来访问linux的/data了,如果要看其他目录,修改上面的root /data就可以了
标签:ati linux目录 location size html data roo lin server
原文地址:https://www.cnblogs.com/stuhjf/p/9996908.html