MAP
      NAME "simple-map"
      STATUS ON
    #  IMAGETYPE      PNG
      EXTENT         -180 -90 180 90
      UNITS          DD
      SIZE           400 300
      SHAPEPATH      "/home/foo"
      IMAGECOLOR     255 255 255
     
      CONFIG "MS_ERRORFILE" "./err_log.txt"
      DEBUG  5
     
      WEB
            IMAGEPATH "/home/foo/mapserver-simple/mapcache/cache/"
            IMAGEURL  "mapserver-simple/mapcache/cache/"
            METADATA
                    "wms_abstract" "This is a simple WMS Demo showing country outlines."
                    "wms_title" "simple-map"
                    "wms_onlineresource" "http://localhost/cgi-bin/mapserv"
                    "wms_enable_request" "*"
                    "ows_enable_request" "*"
                  END
      END
     
      PROJECTION
            "init=epsg:4326"
      END
     
      # Layer objects are defined beneath the map object.  You need at least one
      # layer defined in your map file before you can display a map...
     
     
      # Start of LAYER DEFINITIONS ---------------------------------------------
      LAYER # States polygon layer begins here
        NAME         "countries"
        METADATA
          "wms_title"    "countries"   ##required
        END
        DATA         ne_10m_admin_0_countries.shp
        STATUS       ON
        TYPE         POLYGON
     
        CLASS
            NAME    "countries"
            STYLE
                    OUTLINECOLOR 0 0 0
            END
         END
      END # Countries polygon layer ends here
      # End of LAYER DEFINITIONS -------------------------------
     
    END

Add a code snippet to your website: www.paste.org