ade571006d
Swift can alternatively be configured to work as a request processor of Apache server. This alternative deployment scenario uses mod_wsgi of Apache to forward requests to the swift wsgi application and middleware. 'client' <---> 'Apache2+mod_wsgi' <---> 'middleware' <---> 'core swift' Change-Id: If396dcbdf651af0dce55b951cd2eaadc6783384f Signed-off-by: Prashanth Pai <ppai@redhat.com> Reviewed-on: http://review.gluster.org/6116 Reviewed-by: Luis Pabon <lpabon@redhat.com> Tested-by: Luis Pabon <lpabon@redhat.com>
20 lines
338 B
Bash
Executable File
20 lines
338 B
Bash
Executable File
#!/bin/sh -x
|
|
|
|
# For Fedora/RHEL ONLY
|
|
|
|
if [ $EUID -ne 0 ]; then
|
|
echo "This script must be run as root"
|
|
exit 1
|
|
fi
|
|
|
|
# Stop Apache service
|
|
service httpd stop
|
|
|
|
# Remove swift wsgi files
|
|
rm -rf /var/www/swift
|
|
|
|
# Remove swift httpd config file
|
|
rm -f /etc/httpd/conf.d/swift_wsgi.conf
|
|
|
|
echo -e "DONE.\nYou can now restart Swift."
|