lundi 25 mai 2015

Amazon Beanstalk - How to set default script?

I am moving an application from Google App Engine to Amazon Beanstalk.

My application is using AngularJS with ngRoute so I have urls like:

http://ift.tt/1blrOXl

This runs the script:

http://ift.tt/wAZaPt

Which then loads the page:

http://ift.tt/1ceHduA

In Google App Engine I have a config file app.yaml which has the following rule:

handlers:
- url: /.*
script: index.php

So if I try to access any url of my app directly it will run index.php which will then load the page for that route.

If I try to access a url directly in Amazon Beanstalk it returns a 404 page not found.

How do I setup Amazon Beanstalk to load the index.php by default?




Aucun commentaire:

Enregistrer un commentaire