Apache2 Install on Ubuntu 14.04

来源:互联网 发布:公需课挂机软件2017 编辑:程序博客网 时间:2024/06/06 01:03

Install and Enable CGI

  1. sudo -s
  2. apt-get install apache2
  3. a2enmod cgi
  4. vim /etc/apache2/sites-available/default-ssl.conf

                ServerAdmin admin@example.com            ServerName test.example.com            DocumentRoot /var/www/cgi            #ScriptAlias / /var/www/cgi/            <Directory "/var/www/cgi">                 Options +ExecCGI                 DirectoryIndex index.html            </Directory>            AddHandler cgi-script .cgi 
  5. service apache2 restart
0 0