All pastes #912638 Raw Edit

Stuff

public text v1 · immutable
·published 2008-02-21 15:11 UTC
rendered paste body
#
# Virtual Hosts
#
# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at 
# <URL:http://httpd.apache.org/docs/2.2/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# Use name-based virtual hosting.
#
NameVirtualHost *:80
# NameVirtualHost 127.0.0.1

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#

#
# localhost
#
<VirtualHost *:80>
    DocumentRoot "E:/Inetpub/wwwroot/localhost"
    ServerName localhost
    ErrorLog "logs/localhost-error_log"
    CustomLog logs/localhost-access_log common

    UserDir "W:/Students/*/My Documents/public_html"

    #
    # Control access to UserDir directories.  The following is an example
    # for a site where these directories are restricted to read-only.
    #
    <Location "W:\Students\*\My Documents\public_html">
        AllowOverride FileInfo AuthConfig Limit Indexes
    	Options MultiViews Indexes SymLinksIfOwnerMatch IncludesNoExec
    	<Limit GET POST OPTIONS>
            Order allow,deny
            Allow from all
    	</Limit>
    	<LimitExcept GET POST OPTIONS>
            Order deny,allow
            Deny from all
    	</LimitExcept>
    </Location>
</VirtualHost>