<a href="http://docs.openstack.org/developer/swift/misc.html#module-swift.common.middleware.staticweb">http://docs.openstack.org/developer/swift/misc.html#module-swift.common.middleware.staticweb</a><br><div class="gmail_extra">

<br><br><div class="gmail_quote">2012/11/19 Hua ZZ Zhang <span dir="ltr"><<a href="mailto:zhuadl@cn.ibm.com" target="_blank">zhuadl@cn.ibm.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div>
<p><font face="sans-serif">"</font><font face="serif">You can implement access control for objects either for users or accounts using XContainer-</font><br>
<font face="serif">Read: accountname and X-Container-Write: accountname:username, which</font><br>
<font face="serif">allows any user from the accountname account to read but only allows the username</font><br>
<font face="serif">user from the accountname account to write."</font><br>
<br>
<font face="serif">"You can also grant public access to objects stored in OpenStack Object Storage but also limit </font><br>
<font face="serif">public access using the Referer header to prevent site-based content theft such as hot-linking </font><br>
<font face="serif">(for example, linking to an image filefrom off-site and therefore using other's bandwidth). </font><br>
<font face="serif">The public container settings are used as the default authorization over access control lists. </font><br>
<font face="serif">For example, using X-Container-Read:referer:any allows anyone to read from the container regardless</font><br>
<font face="serif"> of other authorization settings.</font><font face="sans-serif">"</font><br>
<font face="sans-serif"><br>
</font><font size="1" face="serif"><b>Best Regards, </b></font><font size="1" face="serif"><br>
<br>
</font></p><hr width="100%" size="2" align="left">
<table border="0" cellspacing="0" cellpadding="0">
<tbody><tr valign="top"><td width="298" valign="middle">
<ul style="padding-left:0pt"><font size="1" face="serif"><b>Edward Zhang(张华)</b></font></ul>
</td><td width="298" valign="middle"><img width="1" height="1" border="0" alt=""></td></tr>

<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left:0pt"><img width="100" height="100"></ul>
</td><td width="298" valign="middle"><img width="1" height="1" border="0" alt=""></td></tr>

<tr valign="top"><td width="298" valign="middle">
<ul style="padding-left:0pt"><font size="1" face="serif"><br>
</font></ul>
</td><td width="298" valign="middle"><img width="1" height="1" border="0" alt=""></td></tr>
</tbody></table>
<br>
<img width="16" height="16" border="0" alt="Inactive hide details for Sujay M ---2012-11-19 11:59:55---Hi all,"><font color="#424282" face="sans-serif">Sujay M ---2012-11-19 11:59:55---Hi all,</font><br>
<br>

<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody><tr valign="top"><td style="background-image:url();background-repeat:no-repeat" width="40%">
<ul style="padding-left:72pt"><font size="1" face="sans-serif"><b>Sujay M <<a href="mailto:sujay.m17@gmail.com" target="_blank">sujay.m17@gmail.com</a>></b></font><font size="1" face="sans-serif"> </font><br>
<font size="1" face="sans-serif">Sent by: openstack-bounces+zhuadl=<a href="mailto:cn.ibm.com@lists.launchpad.net" target="_blank">cn.ibm.com@lists.launchpad.net</a></font>
<p><font size="1" face="sans-serif">2012-11-19 11:59</font></p></ul>
</td><td width="60%">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody><tr valign="top"><td width="1%"><img width="58" height="1" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">To</font></div></td><td width="100%"><img width="1" height="1" border="0" alt=""><br>

<ul style="padding-left:7pt"><font size="1" face="sans-serif"><a href="mailto:openstack-operators@lists.openstack.org" target="_blank">openstack-operators@lists.openstack.org</a>, <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a>, <a href="mailto:openstack-dev@lists.openstack.org" target="_blank">openstack-dev@lists.openstack.org</a></font></ul>


</td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">cc</font></div></td><td width="100%"><img width="1" height="1" border="0" alt=""><br>
</td></tr>

<tr valign="top"><td width="1%"><img width="58" height="1" border="0" alt=""><br>
<div align="right"><font size="1" face="sans-serif">Subject</font></div></td><td width="100%"><img width="1" height="1" border="0" alt=""><br>

<ul style="padding-left:7pt"><font size="1" face="sans-serif">[Openstack] [Swift] Public Container's file listing</font></ul>
</td></tr>
</tbody></table>

<table border="0" cellspacing="0" cellpadding="0">
<tbody><tr valign="top"><td width="58"><img width="1" height="1" border="0" alt=""></td><td width="336"><img width="1" height="1" border="0" alt=""></td></tr>
</tbody></table>
</td></tr>
</tbody></table>
<br>
<font size="3" face="serif">Hi all,<br>
</font>
<p></p><div><div class="h5"><font size="3" face="serif">Currently it is showing Unauthorized if i give only public container name for listing of files in the public Container</font>
</div></div><p><a href="http://192.168.56.20:8080/v1/AUTH_test/publicContainer/" target="_blank"><font size="3" color="#0000FF" face="serif"><u>192.168.56.20:8080/v1/AUTH_test/publicContainer/</u></font></a>
</p><p><a href="http://192.168.56.20:8080/v1/AUTH_test/publicContainer" target="_blank"><font size="3" color="#0000FF" face="serif"><u>192.168.56.20:8080/v1/AUTH_test/publicContainer</u></font></a>
</p><p><font size="3" face="serif">Unauthorized</font>
</p><p>
</p><p></p><div><div class="h5"><font size="3" face="serif">Is there any way i can list the files publicly? Thanks in advance</font>
</div></div><p></p><div><div class="h5"><font size="3" face="serif"><br>
<br>
-- <br>
Best Regards,<br>
<br>
Sujay M<br>
Final year B.Tech<br>
Computer Engineering<br>
NITK Surathkal<br>
<br>
contact: <a href="tel:%2B918971897571" value="+918971897571" target="_blank">+918971897571</a><br>
</font></div></div><tt><font>_______________________________________________<br>
Mailing list: </font></tt><tt><font><a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a></font></tt><tt><font><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net" target="_blank">openstack@lists.launchpad.net</a><br>
Unsubscribe : </font></tt><tt><font><a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a></font></tt><tt><font><br>
More help   : </font></tt><tt><font><a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a></font></tt><tt><font><br>
</font></tt>
<p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p><p></p></div><br>_______________________________________________<br>
Mailing list: <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
Post to     : <a href="mailto:openstack@lists.launchpad.net">openstack@lists.launchpad.net</a><br>
Unsubscribe : <a href="https://launchpad.net/~openstack" target="_blank">https://launchpad.net/~openstack</a><br>
More help   : <a href="https://help.launchpad.net/ListHelp" target="_blank">https://help.launchpad.net/ListHelp</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>  杨雨<div>  Email:       <a href="mailto:alex890714@gmail.com" target="_blank">alex890714@gmail.com</a><div>GitHub:       <a href="https://github.com/AlexYangYu" target="_blank">https://github.com/AlexYangYu</a></div>

<div>    Blog:        <a href="http://alexyang.sinaapp.com" target="_blank">http://alexyang.sinaapp.com</a></div><div> Weibo:       <a href="http://www.weibo.com/alexyangyu" target="_blank">http://www.weibo.com/alexyangyu</a></div>

</div><br>
</div>