Static website hosting - Malformed request

Hi All,

Sorry that my first post one asking for help.
I have been a node operator for over a year, with three nodes hosting almost 10TB for the network. All is working great, but now I want to host some of my own data In Storj.

I have followed the guide to hosting a static website using the uplink cli service.

Creating a project called “Web Hosting” with a new bucket with the name of my website “Oliverknight.pro”. I made a new access grant and downloaded the access-credentials.txt.

Using the credentials, I can upload files using FileZilla and see them using the “uplink ls” command.

Files in the bucket running uplink ls sj://oliverknight.pro
KIND CREATED SIZE KEY
OBJ 2022-10-21 22:43:19 0 portfolio-details.html
OBJ 2022-10-21 22:43:19 0 portfolio.html
OBJ 2022-10-21 22:43:16 0 blog.html
OBJ 2022-10-21 22:43:20 0 services.html
OBJ 2022-10-21 22:43:17 0 contact.html
OBJ 2022-10-21 22:43:15 0 about.html
OBJ 2022-10-21 22:43:15 0 blog-single.html
OBJ 2022-10-21 22:43:16 0 changelog.txt
OBJ 2022-10-21 22:43:18 0 index-2.html
OBJ 2022-10-21 22:43:20 0 team.html
OBJ 2022-10-21 22:43:15 0 Readme.txt
OBJ 2022-10-21 22:43:18 0 index.html

This is the command used to generate the DNS records.
uplink share --dns www.oliverknight.pro sj://oliverknight.pro/ --not-after=none

Output
DNS records added

www.oliverknight.pro IN CNAME link.storjshare.io.
txt-www.oliverknight.pro IN TXT storj-root:oliverknight.pro
txt-www.oliverknight.pro IN TXT storj-access:judcxaklzqhqlb6mbgngmje7nawq

When trying to access the website at https://www.oliverknight.pro the page loads but with a Malformed request error.

Any ideas as to what I have done wrong? Maybe the link share doesn’t like the .pro domain?

Many thanks for the help,

Ollie

1 Like

Results from dig www.oliverknight.pro TXT

www.oliverknight.pro. 300 IN TXT “storj-access:judcxaklzqhqlb6mbgngmje7nawq”
www.oliverknight.pro. 300 IN TXT “storj-root:oliverknight.pro”

I managed to find my index.html under https://link.storjshare.io/s/judcxaklzqhqlb6mbgngmje7nawq/oliverknight.pro/index.html

So the files are open to the public.

The txt records need to be txt-www.oliverknight.pro and not www.oliverknight.pro. Currently your site will only be served with HTTP, HTTPS support is on the roadmap. Secure Custom Domain Support (TLS) - Linksharing · Issue #39 · storj/roadmap · GitHub. If you need HTTPS now you could use a HTTPS reverse proxy.

4 Likes

Thanks, @pwilloughby. that did the tick.

I’m using Cloudflare for HTTPS. Just need to run a uplink share --dns for the top level domain without the www.

2 Likes