如何配置Apache2.4.10以在其中运行python代码
apache 2.4.10的sites enabled,000-default.conf文件已更改,因此我无法配置apache。因此,是否有人可以逐步介绍如何配置 这是我的000-default.conf文件:如何配置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.
<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