|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On our apache 2 server there's a static html file
http://server.domain/foo.html I would like to replace it with a cgi script, but have the old URL continue to work. I can redirect it OK with the command Redirect temp /foo.html http://server.domain/cgi/foo.cgi Of course that makes the redirection obvious. The new URL shows up in the browser address window. It would be cooler to make it completely transparent. It seems to me that Alias should do this with something like Alias /foo.html /cgi/foo.cgi or perhaps Alias /foo.html /usr/local/httpd/cgi/foo.cgi Alas, neither of these works. The first gives a 404 error while the second displays the text of the cgi script instead of running it. The same thing happens with AliasMatch. Clearly there's something I haven't understood here. What's the key? -- * Patrick L. Nolan * * W. W. Hansen Experimental Physics Laboratory (HEPL) * * Stanford University * |
|
|
|
#2 |
|
Messages: n/a
Hébergeur: |
Patrick L. Nolan wrote:
> On our apache 2 server there's a static html file > http://server.domain/foo.html > > I would like to replace it with a cgi script, but have > the old URL continue to work. I can redirect it OK with > the command > Redirect temp /foo.html http://server.domain/cgi/foo.cgi > > Of course that makes the redirection obvious. The new URL > shows up in the browser address window. It would be cooler > to make it completely transparent. It seems to me that > Alias should do this with something like > Alias /foo.html /cgi/foo.cgi > or perhaps > Alias /foo.html /usr/local/httpd/cgi/foo.cgi > > Alas, neither of these works. The first gives a 404 error > while the second displays the text of the cgi script instead > of running it. The same thing happens with AliasMatch. > Clearly there's something I haven't understood here. > What's the key? ScriptAlias /foo.html /usr/local/httpd/cgi/foo.cgi |
|
|
|
#3 |
|
Messages: n/a
Hébergeur: |
Ray Pearce <ray.pearce@macro4nouce.com> wrote:
> Patrick L. Nolan wrote: >> On our apache 2 server there's a static html file >> http://server.domain/foo.html >> >> I would like to replace it with a cgi script, but have >> the old URL continue to work. I can redirect it OK with >> the command >> Redirect temp /foo.html http://server.domain/cgi/foo.cgi >> >> Of course that makes the redirection obvious. The new URL >> shows up in the browser address window. It would be cooler >> to make it completely transparent. It seems to me that >> Alias should do this with something like >> Alias /foo.html /cgi/foo.cgi >> or perhaps >> Alias /foo.html /usr/local/httpd/cgi/foo.cgi >> >> Alas, neither of these works. The first gives a 404 error >> while the second displays the text of the cgi script instead >> of running it. The same thing happens with AliasMatch. >> Clearly there's something I haven't understood here. >> What's the key? > ScriptAlias /foo.html /usr/local/httpd/cgi/foo.cgi Thanks. That does the job. -- * Patrick L. Nolan * * W. W. Hansen Experimental Physics Laboratory (HEPL) * * Stanford University * |
|
![]() |
| Outils de la discussion | |
|
|