window 路径: http://10.10.10.100:11111

    1. server {
    2. listen 11111;
    3. server_name _;
    4. location /{
    5. root "C:/Documents and Settings/Administrator/Desktop/jar";
    6. }
    7. }

    root alias proxy_pass 实例:
    ruiyi.conf
    118.24.25.216 test.ruiyi126.com
    http://test.ruiyi126.com:8080/
    http://test.ruiyi126.com:8080/test1/alias.html
    http://test.ruiyi126.com:8080/test1/test11/alias.html
    http://test.ruiyi126.com:8080/test1/test22/alias.html
    http://test.ruiyi126.com:8080/testRoot/index.html

    1. server{
    2. listen 80 default_server;
    3. server_name test.ruiyi16.net;
    4. location /{
    5. proxy_pass https://www.ruiyi126.com/;
    6. }
    7. location /test1{
    8. alias /usr/local/nginx/html/test2/;
    9. }
    10. location /testRoot{
    11. root /usr/local/nginx/html/;
    12. }
    13. }