Search code examples
ibm-cloudpipelinedevops

403 Forbidden nginx when trying to run simple static html


I am trying to run a simple html page on the bluemix server. However I get 403 Forbidden error. I am using a manifest.yml to deploy. This is what manifest.yml contains:

---
applications:
- buildpack: https://github.com/cloudfoundry/staticfile-buildpack.git
  host: helloworld-html-${random-word}
  name: lab6
  memory: 64M
  stack: cflinuxfs2

I am not sure what to do to fix this. This is how the file structure looks like. Also, why does my Javascript show the error 'document' is undefined. It works fine outside bluemix(eg in a browser).

enter image description here


Solution

  • To anyone who is having trouble with this, the name of the html file you want to display has to be index.html. It works when this is done. You also have to be in the root directory.