7
如何在Ubuntu上为Python设置Mod_WSGI
我正在尝试在Ubuntu盒子上设置MOD_WSGI。我已经找到步骤,说我需要执行以下步骤,这些步骤可以从http://ubuntuforums.org/showthread.php?t=833766找到。 须藤apt-get install libapache2-mod-wsgi 须藤a2enmod mod-wsgi sudo /etc/init.d/apache2重新启动 sudo gedit / etc / apache2 / sites-available / default并更新目录 <Directory /var/www/> Options Indexes FollowSymLinks MultiViews ExecCGI AddHandler cgi-script .cgi AddHandler wsgi-script .wsgi AllowOverride None Order allow,deny allow from all </Directory> sudo /etc/init.d/apache2重新启动 使用创建了test.wsgi def application(environ, start_response): status = '200 OK' output …