python 3.x - Having trouble seeing .py work in Apache - it simply downloads -
i did go on similar issue in forum, did not solve problem.
i mint 17.1, apache2, python3.4.0
i reloaded mint new. modified apache2.conf file have:
<directory /var/www/html> options indexes followsymlinks multiviews allowoverride none require granted options +execcgi addhandler mod-python .py pythonhandler mod-python.publisher pythondebug on </directory> the a.py file trying see @ /localhost/a.py @ /var/www/html/a.py
#!/usr/bin/python3 def index(req): return "test successful"; while apache not showing error , access log shows 200, on client, download file message.
Comments
Post a Comment