883N/A# The contents of this file are subject to the terms of the 883N/A# Common Development and Distribution License (the "License"). 883N/A# You may not use this file except in compliance with the License. 883N/A# See the License for the specific language governing permissions 883N/A# and limitations under the License. 883N/A# When distributing Covered Code, include this CDDL HEADER in each 883N/A# If applicable, add the following below this CDDL HEADER, with the 883N/A# fields enclosed by brackets "[]" replaced with your own identifying 883N/A# information: Portions Copyright [yyyy] [name of copyright owner] 883N/A# Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 883N/A# Add the given port to LISTEN_PORTS 883N/A# Create additional module directives from vhost configurations. Modules 883N/A# additions are in server config context so this methods has to run 883N/A# before any call to generate_vhost() 883N/A # Get a list of enabled virtual host. 883N/A# Put additional mime definitions into vhost configurations 883N/A# Create vhost configuration in APACHE_CONF for 883N/A # Don't bother if this vhost is disabled 883N/A # Create DocumentRoot directive if it's not empty. Also 883N/A # create a Directory section with default permission for 883N/A # the specified DocumentRoot directory 883N/A echo "Options Indexes Includes FollowSymLinks " \ 883N/A echo " Options Indexes Includes FollowSymLinks " \ 883N/A if (($1 ~ /^vhost/) && ($2 == "application")) 883N/A # Generate general parameters 883N/A # Get the list of vhost names 883N/A # Add mimes for server and modules for both server and virtual hosts 883N/A # Make sure root user's home directory is disabled 883N/A # Generate vhost clauses in configuration file 883N/A # Add a "Listen <port>" line for each uniqe port 883N/A # Add a "NameVirtualHost: *:<port>" line for each duplicate port 883N/A # rules for global port 883N/A # rules for virtual hosts 883N/A echo "Usage: $0 {start|stop|refresh}"