|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
put images in the cgi-bin
Win2000+perl+apache
Just any configuaration should made on httpd.conf so that image in cgi-bin is viewable.. weiring question right Thank for any answer.. |
|
#2
|
|||
|
|||
|
Uncomment the line ScriptAlias. If you don't have Options ExecCGI enabled in your docroot directory, re-enable that to your cgi-bin directory. Say your docroot is /www/htdocs, your cgi-bin directory should now be /www/htdocs/cgi-bin. Then do the following:
<Directory "/www/htdocs/cgi-bin"> AllowOverride None Options +ExecCGI Order allow,deny Allow from all </Directory> You do not need to redefine any other options as they are inherited from your docroot. For security reasons, you should ScriptAlias your cgi-bin or at least move it outside your docroot to a path like: /www/cgi-bin (not under your docroot), then set Alias /cgi-bin/ "/www/cgi-bin/". If you choose this way, you have to make some changes to the appropriate <Directory> block: <Directory "/www/cgi-bin"> AllowOverride None Options All Order allow, deny Allow from all </Directory> |
|
#3
|
|||
|
|||
|
1.This is my current setting and you can notice that my cgi-bin is reside at C:/Program Files/Apache Group/Apache/cgi-bin/
_____________________________________ ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/" <Directory "C:/Program Files/Apache Group/Apache/cgi-bin"> AllowOverride None Options None Order allow,deny Allow from all </Directory> 2.Sorry for my poor unstanding and you meant I should change to just options none to options all _________________________________________ ScriptAlias /cgi-bin/ "C:/Program Files/Apache Group/Apache/cgi-bin/" <Directory "C:/Program Files/Apache Group/Apache/cgi-bin"> AllowOverride None Options all Order allow,deny Allow from all </Directory> 3.And that is it? or something else? |
|
#4
|
|||
|
|||
|
Sorry, I forgot to mention an important statement: If you wanted to view images under cgi-bin directory, you must not ScriptAlias your cgi-bin.
That's why I told you Uncomment the line ScriptAlias in the very beginning of my previous message. After you have uncommented that line, reread my previous post. |
|
#5
|
|||
|
|||
|
ok
Yes I know what you meant now...
|
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > put images in the cgi-bin |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|