Docsify: `This site can鈥檛 be reached Error` in IIS

Created on 9 Jul 2019  路  5Comments  路  Source: docsifyjs/docsify

Bug Report

Steps to reproduce

  1. Host docsify project in Windows IIS

What is current behaviour

Browser returns

This site can鈥檛 be reached docs.domain.com鈥檚 server IP address could not be found.

What is the expected behaviour

Project to load like when docsify serve is run

Other relevant information

  • [X] Bug does still occur when all/other plugins are disabled?
  • Your OS: Windows 10
  • Node.js version:
  • npm/yarn version:
  • Browser version: Chrome
  • Docsify version: 4.9.4
  • Docsify plugins: Emoji, Clipboard, Search

Most helpful comment

@msi-matthew - Yep, in IIS. Google "Mime Type in IIS"

All 5 comments

When setting the web.config file to redirect requests to index.html

<configuration>
   <system.webServer>
      <httpRedirect enabled="true" exactDestination="true" httpResponseStatus="Found">
        <add wildcard="*.*" destination="/index.html" />
      </httpRedirect>
   </system.webServer>
</configuration>

The side bar and main page display Loading..., but never load.

Please verifies the directories or the router.
Not sure about IIS and web.config

The usual flow is
you can either create your docs using docsify init <your docs folder> and start writing markdown files in it and using docsify serve <your docs folder> command it will create a live-server where you can preview the site in realtime. Now to host it, simply host the <your docs folder> in your hosting platform and it should work properly.

This site can鈥檛 be reached docs.domain.com鈥檚 server IP address could not be found.

I guess you might did something wrong with lookups.

See here how routing in docsify works : https://docsify.js.org/#/more-pages

Hope this might help.
Closing this. 馃憤
Please comment below if you want to add anything to it

@msi-matthew After setting the Mime type for Markdown (see below) then my site rendered as expected. You should be able to copy everything from your docs folder into your target website folder.

Add Meme with these values.
Extension: "md"
Mime Type: "text/x-markdown"

@alexpeasleyghc Where are you setting the mime type?

Is this an IIS setting?

@msi-matthew - Yep, in IIS. Google "Mime Type in IIS"

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jhildenbiddle picture jhildenbiddle  路  3Comments

SidVal picture SidVal  路  3Comments

dialex picture dialex  路  4Comments

jhildenbiddle picture jhildenbiddle  路  4Comments

dooart picture dooart  路  5Comments