Author Topic: Nginx 404 Error  (Read 2644 times)

0 Members and 1 Guest are viewing this topic.

Offline pc

  • Hero Member
  • *****
  • Posts: 1530
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
The part after the # never makes it to the server...
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12922
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: 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

Offline Digital Lucifer

  • Sr. Member
  • ****
  • Posts: 368
  • BitShares Maximalist & Venture Architect
    • View Profile
    • BitShares
  • BitShares: dls.cipher
  • GitHub: dls-cipher
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 bitshares.org
Move Institute, Non-profit organization
RN: 2098555000
Murska Sobota, Slovenia.

Offline dexer

  • Newbie
  • *
  • Posts: 3
    • View Profile
Please check your PM.
Thank you! But, it does not work out.

And what is your question now? :)
/market/USD_OPEN.BTC then you will see
« Last Edit: January 29, 2019, 06:20:38 am by dexer »

Offline Ammar Yousef (ioBanker)

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

Offline sschiessl

  • Administrator
  • Hero Member
  • *****
  • Posts: 662
    • View Profile
  • BitShares: sschiessl
And what is your question now? :)

Offline dexer

  • Newbie
  • *
  • Posts: 3
    • View Profile
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;
    }
« Last Edit: January 29, 2019, 06:20:09 am by dexer »