-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathhttpd_ms_ogc_workshop.conf
55 lines (51 loc) · 1.32 KB
/
httpd_ms_ogc_workshop.conf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
#
# $Id: httpd_ms-ogc-workshop.conf,v 1.2 2008-03-12 21:37:35 yassefa Exp $
#
# NOTE: this file MUST exist in
#
#
# \ms4w\httpd.d\
#
#
#
#
# make /ms4w/apps/mum2_ogc_workshop
# HTTP accesible as:
# http://localhost/mum2_ogc_workshop
Alias /ms-ogc-workshop/ "@osgeo4w@/apps/ms-ogc-workshop/"
# set directory defaults for the above mapping
<Directory "@osgeo4w@/apps/ms-ogc-workshop/">
AllowOverride None
Options Indexes FollowSymLinks Multiviews
Order allow,deny
Allow from all
</Directory>
# When MapServer runs in CGI mode, the following
# environment variable MUST be set:
#
# MS_MAPFILE through sysenv
#
# or 'map=<mapfile>' through HTTP
#
# you use this file to declare statements which
# hide mapfiles through setting environment variables
#
# you may want to hide your mapfile to protect
# for the following reasons:
#
# - preventing exposing your file directory structure
# - making a nicer looking URL
#
# format:
#
# SetEnvIfNoCase Request_URI "HTTP_PATH_TO_URL" MS_MAPFILE=/path/to/mapfile
#
# example:
#
# SetEnvIfNoCase Request_URI "/cgi-bin/mapserv.exe" MS_MAPFILE=/ms4w/map.map
#
# STEPS:
# - copy and paste your mapserv.exe to another filename in cgi-bin
# - refer to the new filename in the line below
#
SetEnvIfNoCase Request_URI "/cgi-bin/ms-ogc-workshop" MS_MAPFILE=@osgeo4w@/apps/ms-ogc-workshop/service/config.map