是否可以将子域映射到S3存储桶中的文件夹?

时间:2015-05-18 18:09:32

标签: ssl amazon-web-services amazon-s3 dns

我正在将说明内容从Google Cloud迁移到S3。我们说static.example.com。目前,所有静态html都指的是static.example.com/project1/css/main.js。因此,在Google云端存储中,我们有这样的目录结构。

/
|--project1
   |--index.html
|--project2
|--project3

我们希望将所有内容迁移到具有相同子域的S3。但是,还有另一个团队想要使用相同的存储桶,因为我们要为static.example.com购买SSL证书。我想象的是新S3的结构。

/
|--team1
    |--project1
       |--index.html
    |--project2
    |--project3
|--team2
    |--project1

但是,如果我们这样做,project必须将所有代码更新为static.example.com/team1/...

是否可以仅为static.example.com文件夹将team1映射到S3?然后我可以static.team2.example.comteam2进行S3 PdfPTable tblHeadings = new PdfPTable(3); tblHeadings.WidthPercentage = 100; tblHeadings.SpacingBefore = 10f; float[] headingRowWidths = new float[] { 550f, 50f, 400f }; tblHeadings.SetWidths(headingRowWidths); tblHeadings.HorizontalAlignment = Element.ALIGN_LEFT; Phrase phrasesec1Heading = new Phrase("Section 1: Payment Information", timesRoman9BoldFont); PdfPCell cellSec1Heading GetCellForBorderedTable(phrasesec1Heading, Element.ALIGN_LEFT, ucscgold); tblHeadings.AddCell(cellSec1Heading); . . . doc.Add(tblHeadings); 我意识到这可能是不可能的,所以任何建议,以减少麻烦,请建议。

1 个答案:

答案 0 :(得分:0)

是的,这是可能的 - 只需在S3上为两个团队使用不同的存储桶。第1组将使用static.example.com,第2组将使用team2.static.example.com。