Bitbucket 저장소를 통해 Grav CMS (http://getgrav.org) 기반 웹 사이트를 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. Azure에 MEAN + Webpack 배포
- 2. 별도의 레이어를 Azure에 배포
- 3. Windows Azure에 Unity3D 배포
- 4. 시작 역할없이 Azure에 배포
- 5. Azure에 cakePHP 배포
- 6. Azure에 laravel 앱 배포
- 7. Azure에 웹 역할 배포
- 8. Grav CMS 코어를 확장하는 방법
- 9. 서비스 버스 용 Azure에 배포
- 10. Azure에 배포 할 수 없습니다.
- 11. 대나무를 사용하여 Azure에 지속적으로 배포
- 12. 별도의 레이어를 Azure에 독립적으로 배포
- 13. Grav CMS 가능성
- 14. GRAV CMS JSON Needs
- 15. azure에 웹 배포 된 웹 사이트 게시
- 16. Azure에 배포 할 때 서비스가 매우 느립니다.
- 17. Azure에 배포 된 .Net의 기본 로그인 방법
- 18. git을 사용하여 Azure에 배포 할 수 없습니다
- 19. Windows Azure에 웹 소켓 서버 배포
- 20. Windows Azure에 자체 가상 컴퓨터 배포
- 21. Azure에 배포 할 때 Web.config가 올바르지 않습니다.
- 22. azure에 배포 한 후 내 앱이 404가됩니다
- 23. 사이트를 Azure에 역할로 배포 - DirectoryNotFoundException - approot/siteroot
- 24. Azure에 App_Data 폴더 배포 불충분 한 권한
- 25. 메서드가 없습니다. - Azure에 배포 할 때 System.Web.Razor.RazorTemplateEngine.GenerateCode
- 26. Azure에 SSAS 큐브를 배포 할 때의 문제
- 27. Grav CMS를 사용하여 하나의 모듈 페이지에 2 개의 양식을 만들 수 있습니까?
- 28. Sitecore 8이 Azure에 설치되었습니다.
- 29. Azure에 Silverstripe CMS 설치 및 실행
- 30. Grav CMS에서 페이지 관계를 처리하는 방법은 무엇입니까?
web.config 파일을 내 응용 프로그램의 루트에 추가했지만 여전히 작동하지 않았습니다. 나는 여기에 지침을 따르고있다. https://getgrav.org/blog/grav-on-azure. NB : 루트에 web.config가 있지만 webserver-configs 폴더에 또 다른 web.config가 있습니다. – user2721794
나만의 저장소를 사용합니까? 문제를 재현 할 수있는 저장소를 제공하는 것이 편리합니까? –
예, 여기 있습니다 https://bitbucket.org/vics_linq/damblaise – user2721794