I have a simple Web Application (written in HTML5, CSS and JavaScript) hosted on my Local system that calls out to an IMS RESTful API and everything works so very fine when I run the Web Application on my Local system. I have attached the screenshot (Screenshot0).
My Web Application basically has only two files - one JPG File and an HTML Document. I have attached the screenshot (Screenshot1).
Now, I have followed the instructions laid down at https://www.ibm.com/developerworks/cloud/library/cl-deploy-a-hello-world-webpage-to-bluemix-app/index.html in order to deploy my Web Application to IBM Cloud; the only exception being point number 6 of Step 1. Obviously, as I already have a working Web Application on my Local system and I just want to deploy that Application to IBM Cloud, I selected the Repository type of Clone and entered my GitHub Source Repository URL (where I had already uploaded my two Web Application files, the JPG File and HTML Document).
I could successfully deploy the App in IBM Cloud and I even have 1 instance of the App running normal. I have attached the screenshot (Screenshot2).
However, whenever I click on the 'Open the Deployed App' button (I have attached the screenshot - Screenshot3), I end up on a Web Page that reads "403 Forbidden nginx" (I have attached the screenshot - Screenshot4). I have tried different things but cannot get past this error condition.
Any assistance would be greatly appreciated !!!
alt text
Answer by cipresso (167) | Dec 07, 2018 at 02:27 PM
Hi @Subhasish Sarkar, Could you try renaming your html file to index.html? I think the app structure requires that an index.html exists at the root. Thanks, --Ted
Answer by Subhasish Sarkar (74) | Dec 10, 2018 at 05:50 AM
Thanks a ton @cipresso for your assistance !!! Your answer was bang on !!! Issue now resolved !!!