Bug 1126979
Summary: | 404 ERROR | ||
---|---|---|---|
Product: | OpenShift Online | Reporter: | Miguel Angel <mcvela> |
Component: | Image | Assignee: | Andy Goldstein <agoldste> |
Status: | CLOSED NOTABUG | QA Contact: | libra bugs <libra-bugs> |
Severity: | urgent | Docs Contact: | |
Priority: | unspecified | ||
Version: | 1.x | CC: | bleanhar, dmcphers, jokerman, libra-bugs, libra-onpremise-devel, lmeyer, mcvela, mmccomas, niharvey |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2014-08-07 21:36:01 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Miguel Angel
2014-08-05 18:40:23 UTC
Somebody there!!! 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 Miguel, Do you have an index.php or index.html at the root of your git repo? yes index.php And if you ssh to your gear, do you see index.php at app-root/repo? yes 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 |