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

Not sure how to set up urlpath #424

Closed
thomsna opened this issue Apr 16, 2017 · 6 comments
Closed

Not sure how to set up urlpath #424

thomsna opened this issue Apr 16, 2017 · 6 comments
Labels
docs Releated to new or missing documentation Hacktoberfest question You asked us something. We try to find the answer

Comments

@thomsna
Copy link

thomsna commented Apr 16, 2017

I'd like to run hackmd on a sub directory like example.com/<urlpath>

I'm running latest version from master, and config.json file looks like this:

    "production": {
	"port": "3000",
	"domain": "example.com",
	"urlpath": "hackmd",
	...

I have nginx configured like this:

    location /hackmd {
        proxy_pass http://127.0.0.1:3000;
        proxy_http_version 1.1;
        proxy_set_header Upgrade $http_upgrade;
        proxy_set_header Connection 'upgrade';
        proxy_set_header Host $host;
        proxy_cache_bypass $http_upgrade;
    }

I get a 404 when accessing the page. Is there something I'm missing in the above?

@jackycute
Copy link
Member

Hi @thomsna
Please take a look #100 and #86 to see if it helps.

@thomsna
Copy link
Author

thomsna commented Apr 17, 2017

Thanks. It works fine when hackmd is accessed from a root directory, configured as shown in #100.
The problem arises when "urlpath" is defined in config.json, and nginx configured with

location /hackmd {
...

@a60814billy a60814billy added the question You asked us something. We try to find the answer label May 9, 2017
@SISheogorath SISheogorath added docs Releated to new or missing documentation Hacktoberfest labels Oct 6, 2017
@TheAssassin
Copy link

@SISheogorath how did you "solve" this? I don't find anything in the docs, and anything I tried so far doesn't make it work (with the new https://github.com/codmd/container project it's even worse than with the old 1.2.0 version in docker-hackmd).

@haccht
Copy link

haccht commented May 9, 2019

@TheAssassin I'm also in the same situation and I found that the relative path feature is destroyed since codimd upgraded it's webpack in #932.

@nealian
Copy link

nealian commented May 22, 2019

^ Likewise. Any guidance?

@TheAssassin
Copy link

I was not able to fix that and went for a subdomain instead. I was in a position to do so, but not everyone is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Releated to new or missing documentation Hacktoberfest question You asked us something. We try to find the answer
Projects
None yet
Development

No branches or pull requests

7 participants