BitShares Forum

Main => Technical Support => Topic started by: dexer on January 21, 2019, 10:26:30 am

Title: Nginx 404 Error
Post by: dexer 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;
    }
Title: Re: Nginx 404 Error
Post by: sschiessl on January 21, 2019, 11:51:00 am
And what is your question now? :)
Title: Re: Nginx 404 Error
Post by: Ammar Yousef (ioBanker) on January 21, 2019, 02:55:18 pm
Please check your PM.
Title: Re: Nginx 404 Error
Post by: dexer 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
Title: Re: Nginx 404 Error
Post by: Digital Lucifer 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
Title: Re: Nginx 404 Error
Post by: xeroc 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
Title: Re: Nginx 404 Error
Post by: pc on January 24, 2019, 01:23:36 pm
The part after the # never makes it to the server...