Symfony on Heroku: 403 Forbidden You don't have permission to access / on this server

后端 未结 3 962
無奈伤痛
無奈伤痛 2020-12-16 23:07

I\'ve successfully deployed my Symfony 2 App to Heroku but now, when I\'m trying to access it, I receive the following 403 error:

Forbidden

<
相关标签:
3条回答
  • 2020-12-16 23:14

    Incase anyone still having this problem you can try to replace the double quotes with single quotes in the Procfile

    Example

    "web: vendor/bin/heroku-php-apache2 public/"
    

    Should be

    'web: vendor/bin/heroku-php-apache2 public/'
    
    0 讨论(0)
  • 2020-12-16 23:28

    The easiest way to do this is to type that line without quotation mark.

    For Example

    web: vendor/bin/heroku-php-apache2 public/
    
    0 讨论(0)
  • 2020-12-16 23:29

    It is not possible. more than 3 hours to find a solution. A solution that could not be found in all the code I posted here.

    A really, simple, stupid, small solution: the procfile name. Are you noticing? I'm writing it all in lowercase letters.

    The solution? Procfile, with the first letter in uppercase.

    It was an hell, but finally I have my app up and running! :D

    0 讨论(0)
提交回复
热议问题