-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inline Apache configuration into the application install scripts.
- Loading branch information
1 parent
1bca17d
commit f756dab
Showing
3 changed files
with
39 additions
and
3 deletions.
There are no files selected for viewing
14 changes: 13 additions & 1 deletion
14
integration_test/third_party_apps_test/applications/apache/centos_rhel/install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,18 @@ | ||
set -e | ||
|
||
sudo yum -y install httpd | ||
(cd /etc/httpd/conf.d/ && sudo curl -O https://raw.githubusercontent.com/Stackdriver/stackdriver-agent-service-configs/master/etc/httpd/conf.d/status.conf) | ||
sudo mkdir -p /etc/httpd/conf.d/ | ||
sudo tee /etc/httpd/conf.d/status.conf >/dev/null <<EOF | ||
ExtendedStatus on | ||
<VirtualHost 127.0.0.1:80> | ||
ServerName local-stackdriver-agent.stackdriver.com | ||
<Location /server-status> | ||
SetHandler server-status | ||
Order deny,allow | ||
Deny from all | ||
Allow from 127.0.0.1 | ||
</Location> | ||
</VirtualHost> | ||
EOF | ||
|
||
sudo service httpd start |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters