Main Menu

Nginx 404 Error

Started by dexer, January 21, 2019, 10:26:30 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

pc

The part after the # never makes it to the server...
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 [url="http://bitcoin.quisquis.de"]http://bitcoin.quisquis.de[/url]

xeroc

Afair, the bitswhaes-ui somewhere has a "github" flag in the configs (check package.json or webpack)
That makes sure that the compile version uses "/#/" for routing. Else you need to tell nginx to redirect those paths back to index.html

FearlessAsian

Quote from: sschiessl on January 21, 2019, 11:51:00 AM
And what is your question now? :)

He probably wants to make permanent redirect for anything with /#/ to remove # and on trailing slash. But it comes from code of UI and making such redirects would be a big no-no as my friendly advice.

Chee®s
Milos (DL) Preocanin
Owner and manager of [url="//bitshares.org"]bitshares.org[/url]
RN: 2098555000

dexer

#4
Quote from: R0CK on January 21, 2019, 02:55:18 PM
Please check your PM.
Thank you! But, it does not work out.

Quote from: sschiessl on January 21, 2019, 11:51:00 AM
And what is your question now? :)
/market/USD_OPEN.BTC then you will see

Ammar Yousef (ioBanker)

Be part of the change and set bitshares-vision as your proxy!
Committee account: iobanker-core
Ammar Yousef - CEO @ ioBanker OÜ

sschiessl

And what is your question now? :)

dexer

#1
Nginx returns 404 when I hit the address; /market/USD_OPEN.BTC

But, it is okay if I hit /#/market/USD_OPEN.BTC

Here is my conf;

location / {
        proxy_set_header Host $host;
        proxy_set_header X-Accel-Expires 0;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }