nginx.conf 中添加

    1. include myconfig/*.conf;

    myconfig/map.conf

    1. server {
    2. listen 8000;
    3. server_name localhost;
    4. location / {
    5. root amap;
    6. index index.html index.htm;
    7. }
    8. error_page 500 502 503 504 /50x.html;
    9. location = /50x.html {
    10. root html;
    11. }
    12. }

    文件路径如下:
    image.png