ScriptAlias /api/ "/path to api/"
<Directory "/path to api/">
Options +ExecCGI
AddHandler cgi-script .py
Require all granted
</Directory>
.py コード
Thank you for reading this post, don't forget to subscribe!#!/usr/bin/env python3 # -*- coding: utf-8 -*-