Как обслуживать изображения из общей папки из созданного приложения Python Selector
Форум
  1. Forums
  2. General
  3. General Discussion
  1. Vero
  2. Friday, 12 April 2019
  3.  Subscribe via email
I setup an app with Python Setup App feature, on a cPanel server.

The app is in a folder /home/user/app

When setting it up, a folder /home/user/app/public was created and as I understood, any images/css files placed on that folder would be served directly.

But I am getting all 404 errors.

the app url is https://www.example.com/app

I've tried accessing the images with https://www.example.com/app/public/test.jpg, or https://www.example.com/app/test.jpg, I get 404 in both cases.

The app is a Flask app. What I am seeing is that Flask app is called for urls at /app/public. How do I need to set this up so the assets on that folder are directly served by Passenger?

Thank you.
Rate this post:
  1. 17.04.2019 08:04:14
  2. # 1
Dmitriy Serafin Accepted Answer
Posts: 14
Joined: 03.04.2019
0
Votes
Undo
Hello,

It is quite difficult to tell why this doesn't work for you without a live example. There could be some configuration issues, .htaccess rules preventing that or some other issue.
Could you please submit a Support ticket so we could help you with that?
We're looking forward to hearing from you.
  1. 26.05.2019 17:05:13
  2. # 2
ios man Accepted Answer
Posts: 8
Joined: 26.05.2019
0
Votes
Undo
older /home/user/app/public was created and as I understood, any images/css files placed on that folder would be served directly .
But I am getting all 404 errors .

Facing this is from last months , any solution??
  1. 27.05.2019 18:05:18
  2. # 3
Dmitriy Serafin Accepted Answer
Posts: 14
Joined: 03.04.2019
0
Votes
Undo
older /home/user/app/public was created and as I understood, any images/css files placed on that folder would be served directly.

But I am getting all 404 errors.

Facing this is from last months, any solution??

Hi, it's better to check those issues in place, as a lot can affect the way the app works. Could you please submit a Support ticket so we could help you with that?
https://cloudlinux.zendesk.com/hc/en-us/requests/new

Thanks.
  • Page :
  • 1


There are no replies made for this post yet.
Be one of the first to reply to this post!
гость
Submit Your Response
Upload files or images for this discussion by clicking on the upload button below. Supports gif,jpg,png,zip,rar,pdf
• Insert • Remove Upload Files (Maximum File Size: 2 MB)
Captcha
To protect the site from bots and unauthorized scripts, we require that you enter the captcha codes below before posting your question.