I’m thinking of modifying the .htaccess file to create a reverse proxy, or to forward requests in Yii, but I’m not sure. It might be similar to this answer, but for PHP instead of Rails.
How can I use a subdirectory instead of a subdomain?
Is there a standard Composer plugin for PHP/Yii for setting up a reverse-proxy?
Procfile
httpd_include.conf
Reference:
http://www.apachetutor.org/admin/reverseproxies
https://devcenter.heroku.com/articles/custom-php-settings#using-a-custom-application-level-apache-configuration
https://httpd.apache.org/docs/trunk/mod/mod_proxy.html