Skip to content

deploy docsify with nginx proxy #1810

Open
@hymn-github

Description

@hymn-github

Bug Report

How can I get docsify to use a different path to map so it looks like it's on the deploy and root paths?
or
How to deploy docsify locally with nginx proxy mapping?

Steps to reproduce

nginx config

server {
	listen 8888;
	server_name 127.0.0.1;

	location / {
		root D:/APP/nginx-1.21.1/docsify;
		index index.html;
	}
}

proxy config

server {
	listen 55500;
	server_name 127.0.0.1;

	location /docsify/ {
		proxy_pass http://127.0.0.1:8888/;
	}
}

What is current behaviour

It will seens normal at 127.0.0.1:8888, but it show error code 404 when opening 127.0.0.1:55500/docsify/ .
I tried configuring basepath and alias coverpage and and it didn't work, and if I try to specify the location of the README.md file in nginx, it doesn't work either .
It seems that only the md file cannot be loaded normally

What is the expected behaviour

i want to seem same behavior at 127.0.0.1:8888 at 127.0.0.1:55500/docsify/

Other relevant information

  • Bug does still occur when all/other plugins are disabled?

  • Your OS: windows10

  • Node.js version: 14.17.1

  • npm/yarn version: 6.14.13

  • Browser version: Google ver 102

  • Docsify version: 4.12.2

  • Docsify plugins:
    search.min.js
    docsify-copy-code.min.js
    docsify-sidebar-collapse.min.js

Please create a reproducible sandbox

Edit 307qqv236

Mention the docsify version in which this bug was not present (if any)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions