Skip to content

Commit a7e6839

Browse files
committed
Merge pull request #95 from fredcons/branch-1.3
SPARK-1302 : Fixing ganglia httpd configuration file
2 parents ab75773 + 161d238 commit a7e6839

File tree

2 files changed

+9
-106
lines changed

2 files changed

+9
-106
lines changed

ganglia/init.sh

+4-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
rm -rf /var/lib/ganglia/rrds/*
55
rm -rf /mnt/ganglia/rrds/*
66

7-
# Symlink /var/lib/ganglia/rrds to /mnt/ganglia/rrds
8-
rmdir /var/lib/ganglia/rrds
9-
ln -s /mnt/ganglia/rrds /var/lib/ganglia/rrds
10-
117
# Make sure rrd storage directory has right permissions
128
mkdir -p /mnt/ganglia/rrds
139
chown -R nobody:nobody /mnt/ganglia/rrds
@@ -24,3 +20,7 @@ for node in $SLAVES $OTHER_MASTERS; do
2420
ssh -t -t $SSH_OPTS root@$node "if ! rpm --quiet -q $GANGLIA_PACKAGES; then yum install -q -y $GANGLIA_PACKAGES; fi" & sleep 0.3
2521
done
2622
wait
23+
24+
# Post-package installation : Symlink /var/lib/ganglia/rrds to /mnt/ganglia/rrds
25+
rmdir /var/lib/ganglia/rrds
26+
ln -s /mnt/ganglia/rrds /var/lib/ganglia/rrds

templates/etc/httpd/conf/httpd.conf

+5-102
Original file line numberDiff line numberDiff line change
@@ -150,18 +150,14 @@ Listen 5080
150150
LoadModule auth_basic_module modules/mod_auth_basic.so
151151
LoadModule auth_digest_module modules/mod_auth_digest.so
152152
LoadModule authn_file_module modules/mod_authn_file.so
153-
LoadModule authn_alias_module modules/mod_authn_alias.so
154153
LoadModule authn_anon_module modules/mod_authn_anon.so
154+
LoadModule authz_core_module modules/mod_authz_core.so
155155
LoadModule authn_dbm_module modules/mod_authn_dbm.so
156-
LoadModule authn_default_module modules/mod_authn_default.so
157156
LoadModule authz_host_module modules/mod_authz_host.so
158157
LoadModule authz_user_module modules/mod_authz_user.so
159158
LoadModule authz_owner_module modules/mod_authz_owner.so
160159
LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
161160
LoadModule authz_dbm_module modules/mod_authz_dbm.so
162-
LoadModule authz_default_module modules/mod_authz_default.so
163-
LoadModule ldap_module modules/mod_ldap.so
164-
LoadModule authnz_ldap_module modules/mod_authnz_ldap.so
165161
LoadModule include_module modules/mod_include.so
166162
LoadModule log_config_module modules/mod_log_config.so
167163
LoadModule logio_module modules/mod_logio.so
@@ -189,16 +185,18 @@ LoadModule alias_module modules/mod_alias.so
189185
LoadModule substitute_module modules/mod_substitute.so
190186
LoadModule rewrite_module modules/mod_rewrite.so
191187
LoadModule proxy_module modules/mod_proxy.so
192-
LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
193188
LoadModule proxy_ftp_module modules/mod_proxy_ftp.so
194189
LoadModule proxy_http_module modules/mod_proxy_http.so
195190
LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
196191
LoadModule proxy_connect_module modules/mod_proxy_connect.so
197192
LoadModule cache_module modules/mod_cache.so
198193
LoadModule suexec_module modules/mod_suexec.so
199-
LoadModule disk_cache_module modules/mod_disk_cache.so
200194
LoadModule cgi_module modules/mod_cgi.so
201195
LoadModule version_module modules/mod_version.so
196+
LoadModule unixd_module modules/mod_unixd.so
197+
LoadModule access_compat_module modules/mod_access_compat.so
198+
LoadModule mpm_prefork_module modules/mod_mpm_prefork.so
199+
LoadModule php5_module modules/libphp-5.5.so
202200

203201
#
204202
# The following modules are not loaded by default:
@@ -425,17 +423,6 @@ AccessFileName .htaccess
425423
#
426424
TypesConfig /etc/mime.types
427425

428-
#
429-
# DefaultType is the default MIME type the server will use for a document
430-
# if it cannot otherwise determine one, such as from filename extensions.
431-
# If your server contains mostly text or HTML documents, "text/plain" is
432-
# a good value. If most of your content is binary, such as applications
433-
# or images, you may want to use "application/octet-stream" instead to
434-
# keep browsers from trying to display binary files as though they are
435-
# text.
436-
#
437-
DefaultType text/plain
438-
439426
#
440427
# The mod_mime_magic module allows the server to use various hints from the
441428
# contents of the file itself to determine its type. The MIMEMagicFile
@@ -540,16 +527,6 @@ ServerSignature On
540527
# Aliases: Add here as many aliases as you need (with no limit). The format is
541528
# Alias fakename realname
542529
#
543-
# Note that if you include a trailing / on fakename then the server will
544-
# require it to be present in the URL. So "/icons" isn't aliased in this
545-
# example, only "/icons/". If the fakename is slash-terminated, then the
546-
# realname must also be slash terminated, and if the fakename omits the
547-
# trailing slash, the realname must also omit it.
548-
#
549-
# We include the /icons/ alias for FancyIndexed directory listings. If you
550-
# do not use FancyIndexing, you may comment this out.
551-
#
552-
Alias /icons/ "/var/www/icons/"
553530

554531
<Directory "/var/www/icons">
555532
Options Indexes MultiViews FollowSymLinks
@@ -594,80 +571,6 @@ ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
594571
# Example:
595572
# Redirect permanent /foo http://www.example.com/bar
596573

597-
#
598-
# Directives controlling the display of server-generated directory listings.
599-
#
600-
601-
#
602-
# IndexOptions: Controls the appearance of server-generated directory
603-
# listings.
604-
#
605-
IndexOptions FancyIndexing VersionSort NameWidth=* HTMLTable Charset=UTF-8
606-
607-
#
608-
# AddIcon* directives tell the server which icon to show for different
609-
# files or filename extensions. These are only displayed for
610-
# FancyIndexed directories.
611-
#
612-
AddIconByEncoding (CMP,/icons/compressed.gif) x-compress x-gzip
613-
614-
AddIconByType (TXT,/icons/text.gif) text/*
615-
AddIconByType (IMG,/icons/image2.gif) image/*
616-
AddIconByType (SND,/icons/sound2.gif) audio/*
617-
AddIconByType (VID,/icons/movie.gif) video/*
618-
619-
AddIcon /icons/binary.gif .bin .exe
620-
AddIcon /icons/binhex.gif .hqx
621-
AddIcon /icons/tar.gif .tar
622-
AddIcon /icons/world2.gif .wrl .wrl.gz .vrml .vrm .iv
623-
AddIcon /icons/compressed.gif .Z .z .tgz .gz .zip
624-
AddIcon /icons/a.gif .ps .ai .eps
625-
AddIcon /icons/layout.gif .html .shtml .htm .pdf
626-
AddIcon /icons/text.gif .txt
627-
AddIcon /icons/c.gif .c
628-
AddIcon /icons/p.gif .pl .py
629-
AddIcon /icons/f.gif .for
630-
AddIcon /icons/dvi.gif .dvi
631-
AddIcon /icons/uuencoded.gif .uu
632-
AddIcon /icons/script.gif .conf .sh .shar .csh .ksh .tcl
633-
AddIcon /icons/tex.gif .tex
634-
AddIcon /icons/bomb.gif core
635-
636-
AddIcon /icons/back.gif ..
637-
AddIcon /icons/hand.right.gif README
638-
AddIcon /icons/folder.gif ^^DIRECTORY^^
639-
AddIcon /icons/blank.gif ^^BLANKICON^^
640-
641-
#
642-
# DefaultIcon is which icon to show for files which do not have an icon
643-
# explicitly set.
644-
#
645-
DefaultIcon /icons/unknown.gif
646-
647-
#
648-
# AddDescription allows you to place a short description after a file in
649-
# server-generated indexes. These are only displayed for FancyIndexed
650-
# directories.
651-
# Format: AddDescription "description" filename
652-
#
653-
#AddDescription "GZIP compressed document" .gz
654-
#AddDescription "tar archive" .tar
655-
#AddDescription "GZIP compressed tar archive" .tgz
656-
657-
#
658-
# ReadmeName is the name of the README file the server will look for by
659-
# default, and append to directory listings.
660-
#
661-
# HeaderName is the name of a file which should be prepended to
662-
# directory indexes.
663-
ReadmeName README.html
664-
HeaderName HEADER.html
665-
666-
#
667-
# IndexIgnore is a set of filenames which directory indexing should ignore
668-
# and not include in the listing. Shell-style wildcarding is permitted.
669-
#
670-
IndexIgnore .??* *~ *# HEADER* README* RCS CVS *,v *,t
671574

672575
#
673576
# DefaultLanguage and AddLanguage allows you to specify the language of

0 commit comments

Comments
 (0)