url aliasin in apache

vinod_home

Member
Hi,

We are trying to use alias feature on apache, but having a little trouble with it.

We have the following entries in httpd.conf
Alias /icons/ "/usr/HTTPServer/icons/"
Alias /slippage "/usr/HTTPServer/cgi-bin/wspd_cgi.sh/WService=slipestdev/slipmain"
ScriptAlias /cgi-bin/ "/usr/HTTPServer/cgi-bin/"

and the webspeed url works without any problems
http://localhost/cgi-bin/wspd_cgi.sh/WService=slipestdev/slipmain

But if use the url alias http://localhost/slippage I get the following in the HTTPServer/logs/error_log file

--- with #Alias /slippage "/cgi-bin/wspd_cgi.sh/WService=slipestdev/slipmain"
[Wed Jun 07 09:44:34 2006] [error] [client ] File does not exist: /cgi-bin

-- with #Alias /slippage "/usr/HTTPServer/cgi-bin/wspd_cgi.sh/WService=slipestdev/slipmain"
[Wed Jun 07 09:08:59 2006] [error] [client ] File does not exist: /usr/HTTPServer/cgi-bin/wspd_cgi.sh/WService=slipestdev/slipmain


TIA
 

Casper

ProgressTalk.com Moderator
Staff member
Hi,

We use alias function with apache (on Linux) without any problem.

We have the folowing:

First we define Servicename in broker properties: Say slippage.
So we put in apllication URL: /slippage

At the webserver we configure wspd_cgi.sh with option 2:

$DLC/bin/cgiip -i slippage

Then in httpd.conf we define:

ScriptAlias /slippage/ "/var/www/cgi-bin/wspd_cgi.sh/"

(well that's the path in a redhat install )

Restart httpd and use for URL:

http://machinename/slippage/slipmain

This should work.

HTH,

Casper.
 

vinod_home

Member
Hi,

Thanks for your reply.

we have multiple servicenames on the box. But your email helped me figure that I shouldnt have had the last part of ScriptAlias.

Alias /slippage "/usr/HTTPServer/cgi-bin/wspd_cgi.sh/WService=slipestdev/slipmain"

should have been
ScriptAlias /slippage "/usr/HTTPServer/cgi-bin/wspd_cgi.sh/WService=slipestdev/"

Thank you again,
 

Casper

ProgressTalk.com Moderator
Staff member
We also have multiple servicenames on the box, we just copy wspd_cgi.sh multiple times in cgi-bin and alias to those scripts.....


But anyway, glad I could help. :)

Casper
 
Top