The CGI module in Apache2.2.14 configuration

The problem is a bit lengthy, bother you to read patiently
I installed Apache2.2.14 and Tomcat6.0.24 on the Ubuntu10.04, through the JSP probe test, should have been integrated successfully.
My question now is, visit the http://localhost/cgi-bin/*.cgi, webpage tips
Not Found
The requested URL /test1.cgi was not found on this server.
To view the Apache log, the following tips:
[notice] Apache/2.2.14 (Ubuntu) mod_jk/1.2.28 configured -- resuming normal operations
[error] [client] script not found or unable to stat: test1.cgi

I added a soft link../mods-available/cgi.load and cgi.conf in the mods-enabled directory, where the cgi.load code for the LoadModule cgi_module /usr/lib/apache2/modules/
Cgi.conf is created in mods-available, just add a code
AddHandler cgi-script .cgi .pl .py
In the sites-enabled/000-default file
DocumentRoot /var/www
<Directory />
Options FollowSymLinks
AllowOverride None
<Directory /var/www>
Options Indexes ExecCGI FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
AddType text/html .html .py .cgi
<Directory "/var/www/cgi-bin">
#AllowOverride None
Options FollowSymLinks MultiViews ExecCGI
Order allow,deny
Allow from all
AddHandler cgi-script .cgi .py

Yes, I stored in the cgi-bin directory of the index.html file can be opened normally, the.Cgi file in the /var/www directory, but also suggest that not found
My test1.cgi script code is as follows
#! /usr/bin/python
print ("Content-type: text/html\n\n")
print ("Hello")
Directly on the command line using the Python analysis, can correct operation.
Heroes can help me analysis, where the problem is, I have not be driven into a corner.~~

Started by Antonio at November 11, 2013 - 4:58 AM

Well, the problem with the help of mitmax, solved smoothly, he said is estimated in our configuration, the integration of tomcat, but there is no difference between the domain name or port.
The contribution of default adjusted as follows:
<VirtualHost *:80>
    DocumentRoot "/var/www"

    <Directory /var/www>
      Options FollowSymLinks
      AllowOverride None
      Order deny,allow
      Allow from all

    <IfModule dir_module>
      DirectoryIndex index.html

    HostnameLookups off
    <Files ~ "\.(html|cgi)$">
      HostnameLookups on

    ScriptAlias /cgi-bin//usr/lib/cgi-bin/
    <Directory /usr/lib/cgi-bin/>
      Options +ExecCGI
      AddHandler cgi-script .cgi
      AllowOverride None
      Order Deny,Allow
      Allow from all

Thanks for the people who helped me~~

Posted by Antonio at November 18, 2013 - 5:06 AM