Announcement

Collapse
No announcement yet.

How to serve images from the public folder from Python Selector created app

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to serve images from the public folder from Python Selector created app

    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

    Ive tried accessing the images with (https://www.example.com/app)https://www.example.com/app/public/test.jpg, or (https://www.example.com/app/public/test.jpg)[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.](https://www.example.com/app/test.jpg)

  • #2
    Hello,

    It is quite difficult to tell why this doesnt 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?
    Were looking forward to hearing from you.

    Comment


    • #3
      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??

      Comment


      • #4
        > 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, its 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://[https://cloudlinux.zendesk....s/requests/new

        Thanks.](https://cloudlinux.zendesk.com/hc/en-us/requests/new)

        Comment

        Working...
        X