Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy docsify with nginx proxy #1810

Open
1 task
hymn-github opened this issue May 31, 2022 · 0 comments
Open
1 task

deploy docsify with nginx proxy #1810

hymn-github opened this issue May 31, 2022 · 0 comments

Comments

@hymn-github
Copy link

hymn-github commented May 31, 2022

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant