View Full Version : Need apache help :(
SexySites
07-29-2002, 11:02 PM
i've never used apache with windows before ....but in the cgi-bin directory the images/jpeg are not loading up proplerly and are broken images.....anyone know how to change this? the cgi-bin im using is an alias on the server
thanks!!
laters,
Chris
AgentCash
07-30-2002, 02:28 AM
You need to set Apache to only execute scripts and not everything in the directory. The bonus of this is you'll be able to run scripts from any directory if you like.
Open up httpd.conf and change the line
ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
to
Alias /cgi-bin/ "C:/Program Files/Apache Group/Apache2/cgi-bin/"
scroll down a few lines to
<Directory "C:/Program Files/Apache Group/Apache2/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
change the Options line to
Options ExecCGI
search for
AddHandler cgi-script .cgi
make sure it's uncommented (remove the #) and add
AddHandler cgi-script .pl
below it. That's it, you're good to go.
SexySites
07-30-2002, 07:10 AM
cheers for the info, why didnt i think of that? :D
laters,
Chris
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.