|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stay one step ahead of the competition. Evaluate and give feedback
on some of the hottest web development tools on the market today.
Make your opinion heard! Click
Here
|
|
#1
|
|||
|
|||
|
Hi,
Another question related to VirtualHosting. I've tried and tried, read the documentation and FAQ on this subject from http://www.apache.org, but I still can't fix the problem. I can not get the cgi-bin on my VirtualHosted sites to work for some reason. The virtualhost block on my http.conf looks like this <VirtualHost ip> ServerName www.domain.com ServerAlias www.domaincom Alias /images/ /home/user/images/ ScriptAlias /cgi-bin/ /home/user/cgi-bin/ DocumentRoot /home/user/public_html ErrorLog logs/error_log TransferLog logs/transfer_log Group nobody </VirtualHost> The .cgi programs runs fine in shell, but whenever I tried to run it from Web Browser, it gives me Premature end of script header error. Please help, Thanks. Helicon |
|
#2
|
|||
|
|||
|
Hi,
I'm pretty sure your ScriptAlias commands should have double quotes around the second arguement. Also, try a SIMPLE perl script that you can be sure would work instead of anything complex... like <BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">code:</font><HR><pre>#!/path/to/perl print("Content-type: text/htmlnnhello world"); [/code] Hope that helps, Josh |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > CGI-BIN in VirtualHosting |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|