Can I run Bottle.py on my Apache server without breaking my PHP applications?

I want Python to run on my web server, just building it.

I chose Bottle.py because it looks simple, accessible, and inclusive. I have very little experience or knowledge on how web servers work (how to communicate with them), and I do not want to play with my Apache server if I do not need it, since it already has a very active message board.

The documentation for the bottles seemed to suggest a step or two of understanding the server / python, which I don’t have, as I’m not even sure where to put the actual routes / contents of the website as soon as I already have the bottle. my doc root. Or how does the server know how to start the bottle (or execute python) when I go to "mydomain.com".

+3
source share
2 answers

Run it in a WSGI container, such as mod_wsgi .

+5
source

You can also run Apace as a proxy server for your application. I suppose using mod_proxy will lead you there. I myself run the nginx interface as a reverse proxy for the bottle app running on bjoern. Bjoern itself is quite capable of running the bottle app, so I did not want to use mod_wsgi and similar things.

+2
source

Source: https://habr.com/ru/post/1779220/


All Articles