Cannot run cgi, show plain text only (Ubuntu 13.10 Apache 2.4)

前端 未结 6 1327
盖世英雄少女心
盖世英雄少女心 2021-02-07 10:56

I just install Ubuntu 13.10 and I am trying to install Apache. But when I tried to run a perl file in cgi-bin, the browser showed only plain text.

My default.conf of Apa

6条回答
  •  南旧
    南旧 (楼主)
    2021-02-07 11:49

    I tried to reproduce this issue and this is what i learned: In /etc/apache2/sites-available you either have multiple sites setup or are using the default. Either way there is a .... shows the path to my DocuumentRoot (wherer my .html files live). The second .... shows the path to my .cgi , .pl , .perl files:

    
        ServerName casey.local
        **DocumentRoot /home/casey/work/htdocs/casey.local**
        
          Options FollowSymlinks
          AllowOverride All
        
    
        ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ 
        ****
          AllowOverride None
          Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
          Order allow,deny
          Allow from all
        
    

提交回复
热议问题