Remove sudo usage from Security Guide

Remove sudo usage and adjust prompts as needed.
Also fix some programlisting markup.

Change-Id: Ic2ba237a8e04f878ef62b91be864fbaf6e6b6916
This commit is contained in:
Andreas Jaeger 2014-03-10 20:22:08 +01:00
parent f4b31857e0
commit 1bbabdea40

View File

@ -268,23 +268,19 @@
below. Also consult the <link below. Also consult the <link
xlink:href="http://docs.openstack.org/developer/swift/apache_deployment_guide.html" xlink:href="http://docs.openstack.org/developer/swift/apache_deployment_guide.html"
>Apache Deployment Guide</link></para> >Apache Deployment Guide</link></para>
<screen>sudo apt-get install libapache2-mod-wsgi</screen> <screen><prompt>#</prompt> <userinput>apt-get install libapache2-mod-wsgi</userinput></screen>
<para>Modify file <para>Modify file
<filename>/etc/apache2/envvars</filename> <filename>/etc/apache2/envvars</filename>
with</para> with</para>
<programlisting> <programlisting>export APACHE_RUN_USER=swift
export APACHE_RUN_USER=swift export APACHE_RUN_GROUP=swift</programlisting>
export APACHE_RUN_GROUP=swift
</programlisting>
<para>An alternative is to modify your Apache conf file <para>An alternative is to modify your Apache conf file
with</para> with</para>
<programlisting> <programlisting>User swift
User swift Group swift</programlisting>
Group swift <para>Create a <filename>swift</filename> directory in
</programlisting> your Apache document root:</para>
<para>Create a "swift" directory in your Apache document <screen><prompt>#</prompt> <userinput>mkdir /var/www/swift/</userinput></screen>
root:</para>
<screen><prompt>#</prompt><userinput>sudo mkdir /var/www/swift/</userinput></screen>
<para>Create the file <para>Create the file
<filename>$YOUR_APACHE_DOC_ROOT/swift/proxy-server.wsgi</filename>:</para> <filename>$YOUR_APACHE_DOC_ROOT/swift/proxy-server.wsgi</filename>:</para>
<programlisting>from swift.common.wsgi import init_request_processor application, conf, logger, log_name = \ <programlisting>from swift.common.wsgi import init_request_processor application, conf, logger, log_name = \