<html><body><div style="color:#000; background-color:#fff; font-family:bookman old style, new york, times, serif;font-size:12pt"><div>hello,<br><br>I have to configure proxy server.<br>For this, <br></div><div><span></span>I
 have to edit /etc/swift/swift.conf and change the 
swift_hash_path_suffix to something secret and then, start the proxy 
server process</div><div><br></div><div style="color:rgb(0, 0, 0);font-size:16px;font-family:bookman old style, new york, times, serif;background-color:transparent;font-style:normal;">for this, I use the following commands:</div>root@arun-Aspire-5742:~# vi /etc/swift/swift.conf<br><br>make following changes (highlighted) in the file:<br>swift_hash_path_suffix =<span style="background-color: rgb(255, 0, 0);">pragya</span> <br>swift_hash_path_prefix =<span style="background-color: rgb(255, 0, 0);">jain </span><br><br>save and exit.<br>then, I run the command:<br>root@arun-Aspire-5742:~# sudo swift-init proxy start<br>Starting proxy-server...(/etc/swift/proxy-server.conf)<br><br>Now, I have to set up Tempauth authentication & authorization with Swift<br>for this, I run the following command:<br>root@arun-Aspire-5742:~# vi /etc/swift/proxy-server.conf<br><br>make following changes (highlighted) in the file:<br>allow_account_management =<span
 style="background-color: rgb(255, 0, 0);">true</span> <br>...<br>[filter:tempauth]<br>use = egg:swift#tempauth<br>...<br>user_admin_admin = admin .admin .reseller_admin<br>user_test_tester = testing .admin<br>user_test2_tester2 = testing2 .admin<br>user_test_tester3 = testing3<br><span style="background-color: rgb(255, 0, 0);">user_prag2648_pragya = pj2648.admin.reseller_admin</span><br>...<br><br>save and exit<br>Then, run following commands:<br>root@arun-Aspire-5742:~# sudo swift-init account start<br>Starting account-server...(/etc/swift/account-server.conf)<br>root@arun-Aspire-5742:~# sudo swift-init proxy restart<br>Signal proxy-server  pid: 2476  signal: 15<br>proxy-server (2476) appears to have stopped<br>Starting proxy-server...(/etc/swift/proxy-server.conf)<br>root@arun-Aspire-5742:~# curl -v -H 'X-Auth-User:prag2648:pragya' -H 'X-Auth-Key:pj2648' http://localhost/auth/v1.0/<br>* About to connect() to localhost port 80
 (#0)<br>*   Trying 127.0.0.1... Connection refused<br>* couldn't connect to host<br>* Closing connection #0<br>curl: (7) couldn't connect to host<br><br>But, there is an error in establising a connection.<br><br>if, I run the command to start proxy server, then it shows that proxy server is already started.<br>root@arun-Aspire-5742:~# sudo swift-init proxy start<br>proxy-server running (2935 - /etc/swift/proxy-server.conf)<br>proxy-server already started...<br><br>Please help me in this regard.<br>---<br><br>Thanks <br><br>Pragya Jain<br></div></body></html>