[Solved] Is it possible to have flask api running on apache with already running PHP site for same domain? [closed]

That is possible. You will need to specify a certain route for each app. For example, foo.com/ -> PHP foo.com/api -> Flask App A sample apache config would be something like this: <VirtualHost *:80> ServerName foo.com ProxyPreserveHost On ProxyPass / http://127.0.0.1:8080/ ProxyPassReverse / http://127.0.0.1:8080/ ProxyPass /api/ http://127.0.0.1:8081/ ProxyPassReverse /api/ http://127.0.0.1:8081/ </VirtualHost> 2 solved Is it … Read more