You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Ling F. Zhang" <li...@yahoo.com> on 2003/06/30 10:50:26 UTC
[users@httpd] redirecting...
when one browses to http://localhost/
they get the document <apache path>/htdocs/index.html,
right?
but I write a CGI script to generate this page
automatically and dynamically...I want that when the
user browses to http://localhost/
they get <apache path>/cgi-bin/myindexscript.cgi
how do I do that?
appearantly
"RedirectPermanent" only works for path, not file...
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] redirecting...
Posted by BAO RuiXian <ru...@pp.inet.fi>.
Or just add
DirectoryIndex /cgi-bin/myindexscript.cgi
to the document root directory. This will cause the index producing cgi
script being excuted.
Good luck
Bao
Andrew Berkowitz wrote:
> Add:
> DirectoryIndex myindexscript.cgi
> and
> AddHandler cgi-script .cgi
>
> to your httpd.conf. Then redirect to the directory.
>
>
>
> --- "Ling F. Zhang" <li...@yahoo.com> wrote:
>
>>when one browses to http://localhost/
>>they get the document <apache path>/htdocs/index.html,
>>right?
>>but I write a CGI script to generate this page
>>automatically and dynamically...I want that when the
>>user browses to http://localhost/
>>they get <apache path>/cgi-bin/myindexscript.cgi
>>
>>how do I do that?
>>appearantly
>>"RedirectPermanent" only works for path, not file...
>>
>>__________________________________
>>Do you Yahoo!?
>>SBC Yahoo! DSL - Now only $29.95 per month!
>>http://sbc.yahoo.com
>>
>>---------------------------------------------------------------------
>>The official User-To-User support forum of the Apache HTTP Server
>>Project.
>>See <URL:http://httpd.apache.org/userslist.html> for more info.
>>To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>> " from the digest: users-digest-unsubscribe@httpd.apache.org
>>For additional commands, e-mail: users-help@httpd.apache.org
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Re: [users@httpd] redirecting...
Posted by Andrew Berkowitz <ba...@rocketmail.com>.
Add:
DirectoryIndex myindexscript.cgi
and
AddHandler cgi-script .cgi
to your httpd.conf. Then redirect to the directory.
--- "Ling F. Zhang" <li...@yahoo.com> wrote:
> when one browses to http://localhost/
> they get the document <apache path>/htdocs/index.html,
> right?
> but I write a CGI script to generate this page
> automatically and dynamically...I want that when the
> user browses to http://localhost/
> they get <apache path>/cgi-bin/myindexscript.cgi
>
> how do I do that?
> appearantly
> "RedirectPermanent" only works for path, not file...
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server
> Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
> " from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
>
__________________________________
Do you Yahoo!?
SBC Yahoo! DSL - Now only $29.95 per month!
http://sbc.yahoo.com
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org