Bitbucketリポジトリ経由でGrav CMS(http://getgrav.org)ベースのWebサイトをAzureにデプロイした後、「このディレクトリまたはページを表示する権限がありません」というメッセージが表示されます。私はサイトを閲覧しようとするとき。私はまだ設定を変更していません。Grav CMSをAzureにデプロイ
0
A
答えて
5
Azureで実行されているPHPアプリケーションはIIS上でホストされているため、IISでURL書き換えモードを設定していないために問題が発生します。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<defaultDocument>
<files>
<remove value="index.php" />
<add value="index.php" />
</files>
</defaultDocument>
<rewrite>
<rules>
<rule name="request_filename" stopProcessing="true">
<match url="." ignoreCase="false" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" ignoreCase="false" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" ignoreCase="false" negate="true" />
</conditions>
<action type="Rewrite" url="index.php" />
</rule>
<rule name="user_accounts" stopProcessing="true">
<match url="^user/accounts/(.*)$" ignoreCase="false" />
<action type="Redirect" url="error" redirectType="Permanent" />
</rule>
<rule name="user_config" stopProcessing="true">
<match url="^user/config/(.*)$" ignoreCase="false" />
<action type="Redirect" url="error" redirectType="Permanent" />
</rule>
<rule name="user_error_redirect" stopProcessing="true">
<match url="^user/(.*)\.(txt|md|html|php|yaml|json|twig|sh|bat)$" ignoreCase="false" />
<action type="Redirect" url="error" redirectType="Permanent" />
</rule>
<rule name="cache" stopProcessing="true">
<match url="^cache/(.*)" ignoreCase="false" />
<action type="Redirect" url="error" redirectType="Permanent" />
</rule>
<rule name="bin" stopProcessing="true">
<match url="^bin/(.*)$" ignoreCase="false" />
<action type="Redirect" url="error" redirectType="Permanent" />
</rule>
<rule name="backup" stopProcessing="true">
<match url="^backup/(.*)" ignoreCase="false" />
<action type="Redirect" url="error" redirectType="Permanent" />
</rule>
<rule name="system" stopProcessing="true">
<match url="^system/(.*)\.(txt|md|html|yaml|php|twig|sh|bat)$" ignoreCase="false" />
<action type="Redirect" url="error" redirectType="Permanent" />
</rule>
<rule name="vendor" stopProcessing="true">
<match url="^vendor/(.*)\.(txt|md|html|yaml|php|twig|sh|bat)$" ignoreCase="false" />
<action type="Redirect" url="error" redirectType="Permanent" />
</rule>
</rules>
</rewrite>
</system.webServer>
<system.web>
<httpRuntime requestPathInvalidCharacters="<,>,*,%,&,\,?" />
</system.web>
</configuration>
そして紺碧のアプリケーションでそれをデプロイします
は、以下の内容で、アプリケーションのルートディレクトリにweb.config
という名前のファイルを作成するようにしてください。また、この設定ファイルは、グラビアアプリケーションのwebserver-configs
フォルダにあります。または、githubでhttps://github.com/Vivalldi/grav/blob/develop/webserver-configs/web.configを参照することもできます。
さらに詳しいことがありましたら、お気軽にお知らせください。
関連する問題
- 1. GRAV CMS JSON Needs
- 2. Grav CMSスポイラー
- 3. GRAV CMSは - 部分テンプレートGRAVへ
- 4. Grav CMSのループのカスタムオーダー
- 5. Grav CMSの可能性
- 6. Grav CMSコアを拡張する方法
- 7. GRAV cms - 定数フッターまたはサイドバー
- 8. Grav CMSの外部webapiにPHP POSTを実行するには?
- 9. Grav CMSテンプレートに複数のコンテンツブロックを追加できますか?
- 10. Grav CMS、フォームプラグインが1ページ内に2つあります
- 11. Grav CMS |マテリアライズCSS | GravフォームプラグインでMaterialize CSSを使用するにはどうすればよいですか?
- 12. Grav CMSでページタイプのデフォルトのタクソノミを定義する方法は?
- 13. GRAV CMSのグローバルコンテンツを作成する方法
- 14. EPiServer CMSをAzureにデプロイするときにサービスバスを使用する理由
- 15. Angular 2 appをAzureにデプロイ
- 16. Azure VMにAsp.Netアプリをデプロイ
- 17. azureアプリケーションサービスにdjangoアプリケーションをデプロイ
- 18. azure vmにnodejsアプリケーションをデプロイ
- 19. Akka HTTPをAzureにデプロイ
- 20. Visual StudioクラスライブラリプロジェクトをAzureにデプロイ
- 21. GRAVカスタムフィールド/ htmlブロック/カスタムテーマテンプレート
- 22. 自動Azureデプロイ
- 23. Gravフォームプラグインエラー
- 24. Grav CMS用のTwigテンプレートでURLからプロトコルをトリミングする方法
- 25. create-react-appでazureにデプロイ
- 26. コマンドプロンプトからAzureにデプロイ
- 27. ビジュアルスタジオからAzureにWebデプロイ
- 28. Gravのナビゲーションメニューリスト
- 29. AzureにNodejs Appを継続的にデプロイ
- 30. VS2015からゼロダウンタイムでWebAppをAzureにデプロイ
私はアプリケーションのルートにweb.configファイルを追加しましたが、それでも動作しませんでした。私はここの指示に従っています。 https://getgrav.org/blog/grav-on-azure。注意:私はrootにweb.configを持っていますが、webserver-configsフォルダにはもう1つのweb.configがあります。 – user2721794
独自のリポジトリを使用していますか?問題を再現するためにあなたのリポジトリを提供することは便利ですか? –
はい私はここにありますhttps://bitbucket.org/vics_linq/damblaise – user2721794