LoginSignup
0
0

More than 5 years have passed since last update.

azure website移行作業つまった処メモ

Last updated at Posted at 2014-05-16

azure website

外部サービスのリポジトリと連携できるのがいいですね
個人的に移管でつまったところをメモします

1. SVGが見れない (woff,tffも)

ルートディレクトリに web.config を作成

web.config
<?xml version="1.0" encoding="utf-8"?>
<configuration>
    <system.webServer>
        <staticContent>
            <remove fileExtension=".woff" />
            <mimeMap fileExtension=".woff" mimeType="application/x-font-woff" />
            <remove fileExtension=".ttf" />
            <mimeMap fileExtension=".ttf" mimeType="application/octet-stream" />
            <remove fileExtension=".svg" />
            <mimeMap fileExtension=".svg" mimeType="image/svg+xml" />
        </staticContent>
    </system.webServer>
</configuration>

フォントファイルのwoff,ttfも初期設定では反映されないようですので追加しとく

2.ドメインのはりかえ

ドメイン管理のほうでCNAMEとAレコードでazureとドメインを紐付けてあげます

Screen Shot 2014-05-17 at 4.05.44.png

DASHBORADの下のバーらへんにある MANAGE DOMAINをクリック
* 外部IPをAレコードしてドメインとひもづける
* CNAMEで awverify.yourdomain.com と awverify.yourdomain.azurewebsites.netを紐付け

参考:AレコードとCNAME貼替えについて

どちらか怠ると紐付けされませんち。
これで張り替え完了です。

githubとつなげられるのべんりですね、とっても!!

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0