搜尋此網誌

2015年8月17日 星期一

Swift/Ceph S3 API Comparison

General S3 REST API Support

Feature
Ceph
Swift
List Bucket Objects
V
V
Bucket ACLs
X
X
Bucket Lifecycle
X
X
Bucket Policy
X
X
Bucket Location
V
X
Bucket Logging
?
X
Bucket Notification
X
X
Bucket Object Versions
V
X
Bucket Request Payment
X
X
Bucket Versioning
V
X
Bucket Website
X
X


Amazon S3 REST API Compatability

Feature
Ceph
Swift
DELETE Bucket
V
V
DELETE Bucket lifecycle
X
X
DELETE Bucket policy
?
X
DELETE Bucket website
X
X
GET Bucket (List Objects)
V
V
GET Bucket acl
V
X
GET Bucket lifecycle
X
X
GET Bucket policy
?
X
GET Bucket location
X
V
GET Bucket logging
?
V
GET Bucket notification
X
X
GET Bucket Object versions
X
X
GET Bucket requestPayment
X
X
GET Bucket versioning
X
X
GET Bucket website
X
X
HEAD Bucket
V
V
List Multipart Uploads
V
X
PUT Bucket
V
V
PUT Bucket acl
V
X
PUT Bucket lifecycle
X
X
PUT Bucket policy
?
X
PUT Bucket logging
?
X
PUT Bucket notification
X
X
PUT Bucket requestPayment
X
X
PUT Bucket versioning
X
X
PUT Bucket website
X
X
DELETE Object
V
V
Delete Multiple Objects
V
V
GET Object
V
V
GET Object ACL
V
X
GET Object torrent
X
X
HEAD Object
V
V
POST Object
V
X
PUT Object
V
V
PUT Object acl
V
X
PUT Object - Copy
V
V
Initiate Multipart Upload
V
V
Upload Part
V
V
Upload Part - Copy
?
V
Complete Multipart Upload
V
V
Abort Multipart Upload
V
V
List Parts
V
V



Ref:

2015年8月16日 星期日

apache強制使用https - 使用mod_rewrite

如果沒有用Virtual Host,直接在httpd.conf的最後面加入:
  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  </IfModule>



若使用Virtual Host,範例如下:
<VirtualHost *:80>
  [...]
  <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
  </IfModule>
</VirtualHost>