-
Notifications
You must be signed in to change notification settings - Fork 2
/
apache-webui-cgi.conf
102 lines (79 loc) · 3.14 KB
/
apache-webui-cgi.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
# Generated on: 2016-12-03 15:05:40
# This config file was automatically created with submin2-admin. If you use
# this command again, it will overwrite all changes to this file. The
# recommanded way to regenerate this file is to change the config with
# submin2-admin and run:
#
# submin2-admin /alidata/submin apacheconf create all
#
#
# To make this config active, you have to include it in your apache
# config. The recommended way is to include it in one of your virtual hosts:
#
# <Virtualhost *:80>
# <other configuration>
#
# Include <path to this file>
# </VirtualHost>
#
# This configuration file is for Apache < 2.4
# WARNING!
# Please note that the following section is included twice: if you change
# something, do not forget to make the same change below. Or better, do
# not change anything, since this file is generated anyway!
# (it is included twice so it works with both prefork and worker/event)
<IfModule mod_cgi.c>
# first define scriptalias, otherwise the Alias will override all
ScriptAlias "/submin/submin.cgi" "/alidata/submin/cgi-bin/submin.cgi"
Alias "/submin" "/usr/lib/python2.6/site-packages/submin/static/www"
<Directory "/alidata/submin/cgi-bin">
Order allow,deny
Allow from all
Options ExecCGI FollowSymLinks
AddHandler cgi-script py cgi pl
SetEnv SUBMIN_ENV /alidata/submin
</Directory>
<Directory "/usr/lib/python2.6/site-packages/submin/static/www">
Order allow,deny
#动态修改的ip
Allow from 144.144.144.144
Options FollowSymLinks
RewriteEngine on
RewriteBase /submin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ submin.cgi/$1
RewriteRule ^$ submin.cgi/
</Directory>
</IfModule>
<IfModule mod_cgid.c>
# first define scriptalias, otherwise the Alias will override all
ScriptAlias "/submin/submin.cgi" "/alidata/submin/cgi-bin/submin.cgi"
Alias "/submin" "/usr/lib/python2.6/site-packages/submin/static/www"
<Directory "/alidata/submin/cgi-bin">
Order allow,deny
Allow from all
Options ExecCGI FollowSymLinks
AddHandler cgi-script py cgi pl
SetEnv SUBMIN_ENV /alidata/submin
</Directory>
<Directory "/usr/lib/python2.6/site-packages/submin/static/www">
Order allow,deny
Allow from all
Options FollowSymLinks
RewriteEngine on
RewriteBase /submin
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.+)$ submin.cgi/$1
RewriteRule ^$ submin.cgi/
</Directory>
</IfModule>
# only show the error page if both cgi and cgid are not loaded
<IfModule !mod_cgi.c>
<IfModule !mod_cgid.c>
AliasMatch "^/submin" /usr/lib/python2.6/site-packages/submin/static/www/nocgi.html
<Location "/submin">
Order allow,deny
Allow from all
</Location>
</IfModule>
</IfModule>