Blame Scripts/Python/Webenv/webenv.conf

869a58
# This file provides the configuration required by Apache HTTP server
869a58
# in order for `webenv.cgi' script to be able of running through it.
869a58
# The configuration provided in this file is splitted in two, one
869a58
# through aliases and other through virtual domains (see bellow) you
869a58
# need to comment/uncomment in order to get a functional configuration.
d864eb
# ------------------------------------------------------------------
d864eb
# $Id$
d864eb
# ------------------------------------------------------------------
d864eb
869a58
# ------------------------------------------------------------------
869a58
# The `Aliases' Configuration:
869a58
#
869a58
# This configuration assumes you are a web developer whom needs to
869a58
# prepare a workstation for downloading a working copy of `webenv.cgi'
869a58
# in order to test the changes you made locally before commit them up
869a58
# to the central repository.  
869a58
#
869a58
# A possible solution would be to download the `webenv.cgi' tree from
869a58
# the central repository into your home directory using the following
869a58
# directory structure:
869a58
#
869a58
#   ~/user
869a58
#   `-- public_html
869a58
#       |-- cgi-bin
869a58
#       |   |-- Apps
869a58
#       |   `-- webenv.cgi
869a58
#       |-- Images
869a58
#       |-- Stylesheets
869a58
#       `-- stylesheets.css
869a58
#
869a58
# In this structure, the `cgi-bin' directory must be set with a
869a58
# `httpd_sys_script_exec_t' selinux context in order for cgi scripts
869a58
# inside to be executed correctly. So, inside `cgi-bin' directory is
869a58
# where we put the `webenv.cgi' script and all related `.py' files it
869a58
# needs to run.  Outside the `cgi-bin' directory, we put all public
869a58
# information (e.g., images and css files) and then configure apache
869a58
# to work with such structure.
869a58
#
869a58
# Be sure to enable requests to `/~user/' to serve the user's
869a58
# public_html directory inside the `/etc/httpd/conf/httpd.conf' file
869a58
# and copy this file (i.e., `webenv.conf') to `/etc/httpd/conf.d/'
869a58
# directory in order to make the web application available at the URL:
79405a
# `http://localhost/webenv/'.
869a58
79405a
ScriptAliasMatch ^/webenv/(.*)$ "/home/centos/public_html/Webenv/webenv.cgi"
79405a
AliasMatch ^/public/(.*)$ "/home/centos/public_html/Webenv/Public"
d864eb
869a58
# ------------------------------------------------------------------
869a58
# The `Virtual Domain' Configuration
869a58
#
869a58
# This configuration assumes you are a system administrator whom needs
869a58
# to put the `webenv.cgi' script in production. For example, if you
869a58
# administer the `centos.org' domain, this configuration would let you
869a58
# to run the `webenv.cgi' script with an URL like
869a58
# `http://www.centos.org/'.
869a58
#
869a58
# This configuration requires that you set up your DNS to point such
869a58
# URLs to the same IP address and copy this file (i.e., `webenv.conf')
869a58
# into the `/etc/httpd/conf.d/' directory. Once you've done this,
869a58
# reload the httpd service (e.g., /sbin/service httpd reload) and use
869a58
# the URL you set up to reach the application. 
869a58
#
869a58
# Notice that, in this configuration you don't make changes inside the
869a58
# `webenv.cgi' script source code. In this configuration, the
869a58
# application's source code would be in a place accesable by apache
869a58
# and root users only (e.g., `/var/www/cgi-bin') with the only purpose
869a58
# of being productive there. Of course, you as system administrtors
869a58
# can update the `webenv.cgi' source code in this location when web
869a58
# developers do release new version of it.
869a58
869a58
#NameVirtualHost *:80
869a58
#
869a58
#<VirtualHost *:80>
869a58
#    ServerName  projects.centos.org
869a58
#    DocumentRoot /var/www/html
869a58
#</VirtualHost>
869a58
#
869a58
#<VirtualHost *:80>
869a58
#    ServerName  www.centos.org
869a58
#    ScriptAliasMatch ^/[^public](.*)$ "/var/www/cgi-bin/webenv.cgi"
869a58
#    Alias /public "/var/www/html"
869a58
#</VirtualHost>