Author Topic: Nginx 404 Error  (Read 499 times)

0 Members and 1 Guest are viewing this topic.

Offline dexer

  • Newbie
  • *
  • Posts: 3
    • View Profile
Nginx 404 Error
« on: January 21, 2019, 10:26:30 am »
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 »

Offline sschiessl

Re: Nginx 404 Error
« Reply #1 on: January 21, 2019, 11:51:00 am »
And what is your question now? :)

Offline ioBanker

Re: Nginx 404 Error
« Reply #2 on: January 21, 2019, 02:55:18 pm »
Please check your PM.
Ammar Yousef - CEO @ ioBanker OÜ
📱 +372-634-6476‬
🏦 Kuusalu vald, Harju maakond, 74626, Estonia

Offline dexer

  • Newbie
  • *
  • Posts: 3
    • View Profile
Re: Nginx 404 Error
« Reply #3 on: January 23, 2019, 06:20:09 pm »
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 Digital Lucifer

  • Global Moderator
  • Sr. Member
  • *****
  • Posts: 236
  • 13 years of being Slackware abUser
    • View Profile
    • BitShares 2.0
  • BitShares: steem-not
  • GitHub: dls-cipher
Re: Nginx 404 Error
« Reply #4 on: January 24, 2019, 12:28:58 pm »
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 through Consensus
Move Institute - RN: 2098555000
Murska Sobota, Slovenia, SI.

Offline xeroc

  • Board Moderator
  • Hero Member
  • *****
  • Posts: 12895
  • ChainSquad GmbH
    • View Profile
    • ChainSquad GmbH
  • BitShares: xeroc
  • GitHub: xeroc
Re: Nginx 404 Error
« Reply #5 on: January 24, 2019, 01:00:24 pm »
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
Give BitShares a try! Use the http://testnet.bitshares.eu provided by http://bitshares.eu powered by ChainSquad GmbH

Offline pc

  • Hero Member
  • *****
  • Posts: 1475
    • View Profile
    • Bitcoin - Perspektive oder Risiko?
  • BitShares: cyrano
Re: Nginx 404 Error
« Reply #6 on: January 24, 2019, 01:23:36 pm »
The part after the # never makes it to the server...
Bitcoin - Perspektive oder Risiko? ISBN 978-3-8442-6568-2 http://bitcoin.quisquis.de