-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhttpd-vhosts-abcd.conf
71 lines (56 loc) · 1.78 KB
/
httpd-vhosts-abcd.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#
# 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 *:9090
#
# 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.
#
Listen 9090
<VirtualHost localhost:9090>
DocumentRoot "/ABCD/www/htdocs"
ServerName localhost
DirectoryIndex index.htm index.php homepage.htm
<Directory "/ABCD/www/htdocs">
Options Indexes FollowSymLinks
AllowOverride None
# Order allow,deny
# Allow from all
Require all granted
</Directory>
ScriptAlias /cgi-bin/ "/ABCD/www/cgi-bin/"
<Directory "/ABCD/www/cgi-bin">
AllowOverride None
Options +ExecCGI -Multiviews +SymLinksIfOwnerMatch
AddHandler cgi-script .cgi
AddHandler cgi-script .exe
Require all granted
</Directory>
Alias /docs/ "/ABCD/www/bases/"
<Directory "/ABCD/www/bases/">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
# Order allow,deny
# Allow from all
Require all granted
# Following line only allows from local IP-ranges :
# Require ip 10 172.20 192.168.2
#Require all granted
</Directory>
</VirtualHost>