24,923
社区成员
发帖
与我相关
我的任务
分享
root@lhb:/var/www/html/cgi-bin# apachectl -v
Server version: Apache/2.4.7 (Ubuntu)
Server built: Jul 22 2014 14:36:39
root@lhb:/var/www/html/cgi-bin# uname -a
Linux lhb 3.13.0-36-generic #63-Ubuntu SMP Wed Sep 3 21:30:45 UTC 2014 i686 i686 i686 GNU/Linux
<VirtualHost *:80>
ServerAdmin webmaster@localhost
DocumentRoot /var/www/html
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
Include conf-available/serve-cgi-bin.conf
</VirtualHost>
<IfModule mod_alias.c>
<IfModule mod_cgi.c>
Define ENABLE_USR_LIB_CGI_BIN
</IfModule>
<IfModule mod_cgid.c>
Define ENABLE_USR_LIB_CGI_BIN
</IfModule>
<IfDefine ENABLE_USR_LIB_CGI_BIN>
ScriptAlias /cgi-bin/ /var/www/html/cgi-bin/
<Directory "/var/www/html/cgi-bin/">
AllowOverride all
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
Order allow,deny
Allow from all
AddHandler cgi-script. .cgi .pl
# Require all granted
</Directory>
</IfDefine>
</IfModule>
127.0.0.1 - - [24/Oct/2014:10:11:59 +0800] "GET /cgi-bin/first.pl HTTP/1.1" 200 362 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:32.0) Gecko/20100101 Firefox/32.0"
127.0.0.1 - - [24/Oct/2014:10:33:28 +0800] "GET /cgi-bin/1.html HTTP/1.1" 200 318 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:32.0) Gecko/20100101 Firefox/32.0"