Sophie

Sophie

distrib > Mageia > 6 > armv5tl > media > core-release > by-pkgid > 06aa0d019cb58b6a54a5da68b680b943 > files > 2

389-dsgw-1.1.11-12.mga6.armv5tl.rpm

# BEGIN COPYRIGHT BLOCK
# This Program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; version 2 of the License.
# 
# This Program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License along with
# this Program; if not, write to the Free Software Foundation, Inc., 59 Temple
# Place, Suite 330, Boston, MA 02111-1307 USA.
# 
# Copyright (C) 2006 Red Hat, Inc.
# All rights reserved.
# END COPYRIGHT BLOCK
#
# This file is the Apache config file that can be dropped into
# the /etc/httpd/conf.d directory, or Include'd by httpd.conf, to enable the
# dsgw.  It uses ScriptAlias to enable incoming requests for CGIs in @cgiurl@
# to execute CGIs in /usr/lib/dirsrv/dsgw-cgi-bin.  It then uses access control to allow clients
# to access files in the html directory /usr/share/dirsrv/dsgw/html, the html template directory
# /usr/share/dirsrv/dsgw/config, and the CGI bin directory /usr/lib/dirsrv/dsgw-cgi-bin

# Tell CGI progs where to find the config files
SetEnv DSGW_CONTEXT_DIR "/etc/dirsrv/dsgw"

# Enable CGI execution for these uris in this directory
ScriptAlias /dsgwcmd "/usr/lib/dirsrv/dsgw-cgi-bin/"
# legacy mapping
ScriptAlias /clients/dsgw/bin/ "/usr/lib/dirsrv/dsgw-cgi-bin/"

# URI aliases for html content
Alias /dsgw /usr/share/dirsrv/dsgw/html
Alias /pb /usr/share/dirsrv/dsgw/pbhtml
Alias /org /usr/share/dirsrv/dsgw/orghtml

# legacy mappings
Alias /clients/dsgw/html /usr/share/dirsrv/dsgw/html
Alias /clients/dsgw/pbhtml /usr/share/dirsrv/dsgw/pbhtml
Alias /clients/dsgw/config /usr/share/dirsrv/dsgw/config
Alias /clients/dsgw/pbconfig /usr/share/dirsrv/dsgw/pbconfig
Alias /clients/orgchart/html /usr/share/dirsrv/dsgw/orghtml

# Allow access to the dsgw html files
<Directory "/usr/share/dirsrv/dsgw/html">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

# Allow access to the pb html files
<Directory "/usr/share/dirsrv/dsgw/pbhtml">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

# Allow access to the org html files
<Directory "/usr/share/dirsrv/dsgw/orghtml">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

# Allow access to the dsgw html templates
<Directory "/usr/share/dirsrv/dsgw/config">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

# Allow access to the pb html templates
<Directory "/usr/share/dirsrv/dsgw/pbconfig">
    AllowOverride None
    Options None
    Order allow,deny
    Allow from all
</Directory>

# Allow access to the cgi programs
<Location "/dsgwcmd">
    Options +ExecCGI
    Order allow,deny
    Allow from all
</Location>