[LINUX] The image is displayed in the local development environment, but the image is not displayed on the remote server of VPS

chrome Devool console Error message

GET ~image_name~.jpeg 403 (Forbidden)

-Gather information from this link

I'm guessing that this 403 issue you're experiencing is in shared hosting.

Create a symbolic link php artisan storage: link, contains the full absolute path to the storage / app / public` folder. This is probably the cause of the 403 response from the server.

*** The solution is to create a symlink relative to the project root ***

Reference for operations related to symbolic links (linux)

Solution

--Delete the symbolic link created by `php artisan storage: link


 Re-paste above
 Pay attention to the hierarchy to be executed

 Reason

 ――It was the cause as written above
 ――It seems that the cause is written in the top link
 ――Is it okay that it was a 403 error because the autloader was written from above so that it wouldn't go to read?

  


Recommended Posts

The image is displayed in the local development environment, but the image is not displayed on the remote server of VPS
Test.py is not reflected on the web server in Python3.
Addition of local development environment on MacOS
What to do if the progress bar is not displayed in tqdm of python
Display "Hello World" created in the local environment on the web
What to do if the image is not displayed using matplotlib etc. in the Docker container
The story of debugging in the local environment because the compilation did not work with Read the Docs
Django cannot be installed in the development environment of pipenv + pyenv
LINEbot development, I want to check the operation in the local environment
Build Python environment on Ubuntu (when pip is not the default)
Using TensorFlow in the cloud integrated development environment Cloud9 ~ Basics of usage ~
I think the limit of knapsack is not the weight but the volume w_11/22update
The one who is not on DVD
The update of conda is not finished.
The date is displayed incorrectly in matplotlib.
What is the reason why the basic commands are not displayed in Japanese in man?
I want to use Python in the environment of pyenv + pipenv on Windows 10
I installed Pygame with Python 3.5.1 in the environment of pyenv on OS X
In Python, change the behavior of the method depending on how it is called
[AWS] Let's run a unit test of Lambda function in the local environment
The image is displayed in the local development environment, but the image is not displayed on the remote server of VPS
Solves the problem that static files (CSS, JS, img) are not read when DEBUG = False in Django.
With Django + Google Cloud Strage, ImageField images are displayed normally on the server
About the problem that the python version of Google App Engine does not mesh
Summary of versions of the Python standard library that are now server validated on https
A solution to the problem that files containing [and] are not listed in glob.glob ()
The story that Kivy's Japanese input characters are displayed
Test.py is not reflected on the web server in Python3.
Log in to the remote server with SSH
Run the task in the background on the sshed server
Pipfile is not created in the current directory
What is wheezy in the Docker Python image?
Instantiation of the BOX development environment created earlier
The value of pyTorch torch.var () is not distributed
Building a Python environment on a Sakura VPS server
The background of the characters in the text image is overexposed to make it easier to read.
Solve the problem that CSS is not reflected during web application development in Flask
What to do if Python IntelliSense is not displayed in VS Code on Windows
Solved the problem that the image was not displayed in ROMol when loaded with PandasTools.LoadSDF.
How strong is your Qiita? Statistics on the number of Contributes seen in the data
I tried to build an environment where work in the Docker container on the remote server can be done directly from the local VS Code with SSH connection