CGI scipt

"Jeremy Rodriguez" <jeremyrodriguez-ha5VgVVzQG/zxgTakmzh5gC/[email protected]>
Newsgroups gmane.linux.admin.managers
Message-ID <[email protected]>
Running RH 7.3, Apache 1.3.27-2, perl 5.6.1 and I am hosting two websites :
domain 1 & 2.

The problem is when I run a cgi script from domain2 I get internal server
error

[Fri May 30 10:02:34 2003] [error] (8)Exec format error: exec of
/var/www/html/domain2/cgi-bin/fl.cgi failed
[Fri May 30 10:02:34 2003] [error] [client x.x.x.x] Premature end of script
headers: /var/www/html/domain2/cgi-bin/fl.cgi

. If I run the same script on domain1 it works fine > I will gladly give you
any snippets


Httpd.conf

<VirtualHost 172.16.1.2:8080>
    DocumentRoot /var/www/html/domain1
    ServerName www.domain1.com
    ScriptAlias /cgi-bin/ /var/www/html/domain1/cgi-bin/
    ErrorLog /var/www/html/domain1/error_log
    CustomLog /var/www/html/domain1/access_log combined
</VirtualHost>
<VirtualHost 172.16.1.2:8081>
    DocumentRoot /var/www/html/domain2
    ServerName www.domain2.com
    ScriptAlias /cgi-bin/ /var/www/html/domain2/cgi-bin/
    ErrorLog /var/www/html/domain2/error_log
    CustomLog /var/www/html/domain2/access_log combined
</VirtualHost>
_______________________________________________
LinuxManagers mailing list - http://www.linuxmanagers.org
submissions: LinuxManagers-35TzE1X9F6582KRnZfj+bdi2O/[email protected]
subscribe/unsubscribe: http://www.linuxmanagers.org/mailman/listinfo/linuxmanagers
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.