Tim Wunder jabbered:
> Hi,
> I'm trying to set up an Alias in my httpd.conf file that'll allow me to 
> redirect a request for <my_URL>/calendar to <my_URL>/cgi-bin/webcal so 
> that if I try to access <my_URL/calendar/webcal.cgi, I get the WebCal 
> calendar selection script.
> I've made these entries in my httpd.conf file:
>    Alias /calendar "/home/httpd/cgi-bin/webcal"
>    <Directory "/home/httpd/cgi-bin/webcal">
>      AllowOverride AuthConfig
>      Options ExecCGI
>    </Directory>
> 
> When I type in <my_URL>/calendar/webcal.cgi I'm presented with the text 
> of the webcal.cgi perl script. When I type in 
> <my_URL>/cgi-bin/webcal/webcal.cgi the script executes and I'm presented 
> with the calendar selection screen. What must I do to get the script to 
> execute when called with <my_URL>/calendar/webcal.cgi?
> 
> Ultimately, I want to be able to type <my_URL>/calendar and get 
> presented with the calendar selection screen.

Look at the ScriptAlias directive. You can also enable CGI on a per
directory basis using a <Directory></Directory> block.
For example:

<Directory /home/*public_html/cgi-bin>
    Options +ExecCGI
    SetHandler cgi-script
<Directory>

This enable CGI scripts in user home directories. You need an
appropriate AddHandler directive elsewhere in httpd.conf. However,
enabling mortal users to run CGI scripts poses a significant security
risk.

Kurt
-- 
I wonder if I ought to tell them about my PREVIOUS LIFE as a COMPLETE
STRANGER?
_______________________________________________
Linux-users mailing list
Archives, Digests, etc at http://linux.nf/mailman/listinfo/linux-users

Reply via email to