|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
As far as I have seen so far, it would be done with a Handler of some kind and maybe an Action. What I want to do is use something like fom.cgi?214 but without the .cgi
(Faq-O-Matic.) |
|
#2
|
|||
|
|||
|
Start here -> http://www.apache.org/docs/mod/mod_alias.html#scriptalias
|
|
#3
|
|||
|
|||
|
So I could theoretically use the following command:
ScriptAlias /fom/ /cgi-bin/fom.cgi? If I want to use the url http://domain.com/fom/32 instead of http://domain.com/cgi-bin/fom.cgi?32 Is this correct? |
|
#4
|
|||
|
|||
|
>>ScriptAlias /fom/ /cgi-bin/fom.cgi?Is this correct?
No. ScriptAlias /cgi-bin/ /home/httpd/my-cgi/ Then any files in your /home/httpd/my-cgi/ are treated as CGI, even without the extension. The first part /cgi-bin/, that is the visible part within your URL. i.e. http://www.domain.com/cgi-bin/ So a script named "myscript" at /home/httpd/my-cgi/myscript is the same script as http://www.domain.com/cgi-bin/myscript. |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > How to run cgi script without extension |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|