Description of problem:
HAVE A 404 ERROR
Version-Release number of selected component (if applicable):
GO TO http://main-lbt1.rhcloud.com/
Steps to Reproduce:
I put my easy php code in my server http://main-lbt1.rhcloud.com/
But I cannot see anything
I go to http://main-lbt1.rhcloud.com/
I get 404 error
I used git to move my code
Why I cannot see a simple image?
I have payed the server service and I don´t have size limit
Do you have an index.php or index.html at the root of your git repo?
And if you ssh to your gear, do you see index.php at app-root/repo?
Are you able to share the contents of your .htaccess file? We believe that's what's causing the problem.
I don´t thing so, I don´t have this file now
Why i don´t seee http://main-lbt1.rhcloud.com/images/about.jpg???
I believe you still have an .htaccess file in place. You can SSH to your gear and look in app-root/runtime/repo to verify. I believe that is likely what is causing the problem.
I don´t think so. I deleted this file. I have the same problem
Ok, I believe I've discovered what's going on. We support multiple options for the DocumentRoot for your application: php, public, public_html, web, www. If you have a directory with any of these names in your git repo, we will use that as the DocumentRoot. Because you have a "www" directory, that becomes the root. So when you try to go to http://main-lbt1.rhcloud.com/images/about.jpg, it's actually trying to serve www/images/about.jpg, which doesn't exist.
Would it be possible for you to restructure your source code to either remove the www directory, or put your code in it?
I will try that
thanks , now work.
thanks a lot