I wanted to start an Apache2 server and this is the 'httpd.conf'
<VirtualHost *:80>
Options FollowSymLinks IncludesNOEXEC ExecCGI
Indexes
# A partir de la version 2.x d'Apache remplacer les deux directives User et
Group
par la directive SuexecUserGroup
User netmet
Group users
SuexecUserGroup netmet netmet
DocumentRoot /home/netmet/html
ServerName netalex.grenet.fr
ServerAdmin [email protected]
ErrorLog /var/log/httpd/netmet.error
TransferLog /var/log/httpd/netmet.access
DirectoryIndex index.cgi index.html
AliasMatch "^/netmet-cgi-bin/nmHOST-4.*-DETAILS(.*)\.cgi$"
"/home/netmet/html/netmet-cgi-bin/nmHOST-DETAILS$1.cgi"
AliasMatch "^/netmet-cgi-bin/nmHOST-4.*-SERVICES(.*)\.cgi$"
"/home/netmet/html/netmet-cgi-bin/nmHOST-SERVICES$1.cgi"
AliasMatch "^/netmet-cgi-bin/nmTOP_NforORGA4-.*(.*)\.cgi$"
"/home/netmet/html/netmet-cgi-bin/nmTOP_NforORGA$1.cgi"
AddHandler cgi-script .cgi .pl
quando eu escrevo a URL eu recebo o conteúdo de index.cgi e ele deve ser executado
esta é a permissão para meu cgi
-rwxr-xr-x 1 netmet netmet 5168 avril 24 14:30 index.cgi
-rwxr-xr-x 1 netmet netmet 8193 avril 14 10:51 nmCHECKaddrVSorga.cgi
-rwxr-xr-x 1 netmet netmet 9330 avril 14 10:51 nmHOST-DETAILS.cgi
-rwxr-xr-x 1 netmet netmet 14151 avril 14 10:51 nmHOST-DETAILS-h2hGRAPHER.cgi
-rwxr-xr-x 1 netmet netmet 14372 avril 14 10:51 nmHOST-DETAILS-servicesGRAPHER.cgi
-rwxr-xr-x 1 netmet netmet 11066 avril 14 10:51 nmHOST-DETAILS-trafficGRAPHER.cgi
-rwxr-xr-x 1 netmet netmet 19917 avril 14 10:51 nmHOST-SERVICES.cgi
-rwxr-xr-x 1 netmet netmet 6673 avril 14 10:51 nmHOST-SERVICES-rrdbGRAPHER.cgi
-rwxr-xr-x 1 netmet netmet 5168 avril 14 10:51 nmINDEX_REDIRECT.cgi
-rwxr-xr-x 1 netmet netmet 36410 avril 14 10:51 nmLOOKUP.cgi
-rwxr-xr-x 1 netmet netmet 54030 avril 14 10:51 nmLOOKUP-engine.cgi
-rwxr-xr-x 1 netmet netmet 9203 avril 14 10:51 nmLOOKUP-popupcalendar.cgi
-rwxr-xr-x 1 netmet netmet 16480 avril 14 10:51 nmRUNNING.cgi
-rwxr-xr-x 1 netmet netmet 20174 avril 14 10:51 nmTOP_NforORGA.cgi
Tags debian cgi scripting apache-httpd