Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/apache/8.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何配置Apache2.4.10以在其中运行python代码_Python_Apache - Fatal编程技术网

如何配置Apache2.4.10以在其中运行python代码

如何配置Apache2.4.10以在其中运行python代码,python,apache,Python,Apache,apache 2.4.10的sites enabled,000-default.conf文件已更改,因此我无法配置apache。因此,是否有人可以逐步介绍如何配置 这是我的000-default.conf文件: <VirtualHost *:80> # The ServerName directive sets the request scheme, hostname and port t$ # the server uses to identify itself.

apache 2.4.10的sites enabled,000-default.conf文件已更改,因此我无法配置apache。因此,是否有人可以逐步介绍如何配置

这是我的000-default.conf文件:

<VirtualHost *:80>
    # The ServerName directive sets the request scheme, hostname and port t$
    # the server uses to identify itself. This is used when creating
    # redirection URLs. In the context of virtual hosts, the ServerName
    # specifies what hostname must appear in the request's Host: header to
    # match this virtual host. For the default virtual host (this file) this
    # value is not decisive as it is used as a last resort host regardless.
    # However, you must set it for any further virtual host explicitly.
    #ServerName www.example.com

    ServerAdmin webmaster@localhost
    DocumentRoot /var/www

    # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
    # error, crit, alert, emerg.
    # It is also possible to configure the loglevel for particular
    # modules, e.g.
    #LogLevel info ssl:warn

vim:syntax=apachets=4sw=4sts=4srnoet


我应该在哪里更改设置?

可能会有帮助。我在ubuntu mate上运行,apache的配置与以前的版本不同,这就是为什么有困难的原因,@PM2Ring My sites available没有我的cgi目录,它只有000-default.conf,你有什么解决方案吗?
    # For most configuration files from conf-available/, which are
    # enabled or disabled at a global level, it is possible to
    # include a line for only one particular virtual host. For example the
    # following line enables the CGI configuration for this host only
    # after it has been globally disabled with "a2disconf".
    #Include conf-available/serve-cgi-bin.conf