/
apache.xml
93 lines (72 loc) · 2.15 KB
/
apache.xml
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
<?xml version="1.0" standalone="no"?>
<stack>
<description>
Apache HTTP Server
</description>
<si_copyright>
Copyright (c) 2006 - 2017 StackIQ Inc.
All rights reserved. stacki(r) v4.0 stacki.com
https://github.com/Teradata/stacki/blob/master/LICENSE.txt
</si_copyright>
<copyright>
Copyright (c) 2000 - 2010 The Regents of the University of California
All rights reserved. Rocks(r) v5.4 www.rocksclusters.org
https://github.com/Teradata/stacki/blob/master/LICENSE-ROCKS.txt
</copyright>
<package>httpd</package>
<package>httpd-devel</package>
<package>mod_ssl</package>
<package>curl</package>
<post>
/sbin/chkconfig httpd on
<file name="/etc/httpd/conf.d/stack.conf"><![CDATA[
#
# Stacki Specific Apache configuration.
# Generated automatically by the apache.xml node.
#
<IfModule mod_mime.c>
AddHandler cgi-script .cgi
</IfModule>
<IfModule mod_deflate.c>
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/javascript
</IfModule>
# KeepAlive will use the same http session between the
# client/server. This can use more memory/cpu than when
# it is off. If you are memory and cpu starved, comment
# out the following lines and restart the webserver.
KeepAlive On
KeepAliveTimeout 5
UseCanonicalName Off
ServerName ]]>&Info_FQDN;<![CDATA[
DirectoryIndex index.cgi
<Directory "/var/www/html">
Options FollowSymLinks Indexes ExecCGI
AllowOverride None
Order allow,deny
Allow from all
</Directory>
]]>
</file>
<!-- This should be done automatically by httpd.conf, but isn't for
some reason. -->
<file name="/etc/httpd/conf/httpd.conf" mode="append">
Include conf.d/stack.conf
</file>
</post>
<!-- Adding this temporarily -->
<post>
sed -i -r 's/(Listen 80)/#\1/' /etc/httpd/conf/httpd.conf
</post>
<post>
<!-- Create Apache Profile.cgi mutex and semaphore -->
mkdir -p /var/tmp
touch /var/tmp/profile.mutex
chown apache:root /var/tmp/profile.mutex
cat /proc/cpuinfo | awk -F: '/^processor/{print $2;}' | wc -l > /var/tmp/profile.semaphore
chown apache:root /var/tmp/profile.semaphore
</post>
</stack>