I can not read Block_Storage file through webpage

Dear All :

I have successfully mounted a new block in my linode and I have used df-h and blkid to confirm that block has been working.

df -h
/dev/sdc 40G 12G 26G 31% /var/www/html/Domain/Image
/dev/disk/by-id/scsi-0Linode_Domain_Image: UUID="f15a4cf2-25s7-47ff-a2ab-1bb677964333" TYPE="ext4"

However, When I open webpage https://domain/Image/file.jpg
It just return blank (not 404).

Is there any way for me to find out what problem is ? thank you

3 Replies

Your web server (whatever that is), is not configured to serve the URL


Just because you have disc space available does not automatically mean that your web server can serve files located in that space. You have to tell your web server how to do that.

-- sw

Dear Stevewi

My link is as following

According your words…
Should I add some command on my ubuntu or ?…..Thank you.

When I do a "Save Linked File" (or equivalent) in Safari, Firefox & Chrome on the URL you gave above, I get an empty file:

stevewi:~/Downloads $ ll *.html
-rw-r--r--@ 1 stevewi  staff        0 Nov 11 19:51 4c093e64c54b454af43db26dbab82d21.jpg.html

When I do the same on the URL for your home page ( https://penghu.info ) in all three same browsers, I get a 56K file:

stevewi:~/Downloads $ ll Home.html
-rw-r--r--  1 stevewi  staff  53333 Nov 11 19:59 Home.html

so there's nothing wrong with my browsers, my OS or my laptop.

You write:

Should I add some command on my ubuntu or ?… Thank you.

Since I don't have access to your Linode, your website, it's configuration or your (what appears to be) Wordpress installation, I don't have a clue. My guess, though, is the web server configuration for your site is incorrect.

-- sw


Please enter an answer

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct