Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Apache: Users

CGI without displaying script in URI

 

 

Apache users RSS feed   Index | Next | Previous | View Threaded


justinjereza at gmail

May 4, 2008, 11:59 PM

Post #1 of 3 (112 views)
Permalink
CGI without displaying script in URI

Hello.

How can I configure Apache to make a CGI script respond to all
requests to / or any other arbitrary location and all locations under
that without showing the name of script in the URI?

The best I can do is http://foo.com/gateway.cgi/bar, I'm trying to
configure it so that I'll only need to supply http://foo.com/bar

Thanks.

---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


joshua at slive

May 5, 2008, 5:49 AM

Post #2 of 3 (104 views)
Permalink
Re: CGI without displaying script in URI [In reply to]

On Mon, May 5, 2008 at 2:59 AM, Justin Jereza <justinjereza[at]gmail.com> wrote:
> Hello.
>
> How can I configure Apache to make a CGI script respond to all
> requests to / or any other arbitrary location and all locations under
> that without showing the name of script in the URI?
>
> The best I can do is http://foo.com/gateway.cgi/bar, I'm trying to
> configure it so that I'll only need to supply http://foo.com/bar

There are several ways to do this of varying complexity, depending on
how complex your situation is. For example, you could use simply
ScriptAlias / /full/path/to/cgi-bin/gateway.cgi
But this really means EVERY request will go there, so you can't have
any static files (images/css/etc) on the server. If you need more
flexibility, there are a variety of choices including mod_rewrite and
the Action directive.

Joshua.

---------------------------------------------------------------------
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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org


justinjereza at gmail

May 6, 2008, 10:02 AM

Post #3 of 3 (97 views)
Permalink
Re: CGI without displaying script in URI [In reply to]

Thanks. I've read up on your suggestions to some extent. Every request
going to a script won't be a problem since I've got vhosts and I can
compartmentalize them. Right now I've gotten to symlinking the index
but I was hoping for a better solution.

Thanks again. :-)

On Mon, May 5, 2008 at 8:49 PM, Joshua Slive <joshua[at]slive.ca> wrote:
>
> On Mon, May 5, 2008 at 2:59 AM, Justin Jereza <justinjereza[at]gmail.com> wrote:
> > Hello.
> >
> > How can I configure Apache to make a CGI script respond to all
> > requests to / or any other arbitrary location and all locations under
> > that without showing the name of script in the URI?
> >
> > The best I can do is http://foo.com/gateway.cgi/bar, I'm trying to
> > configure it so that I'll only need to supply http://foo.com/bar
>
> There are several ways to do this of varying complexity, depending on
> how complex your situation is. For example, you could use simply
> ScriptAlias / /full/path/to/cgi-bin/gateway.cgi
> But this really means EVERY request will go there, so you can't have
> any static files (images/css/etc) on the server. If you need more
> flexibility, there are a variety of choices including mod_rewrite and
> the Action directive.
>
> Joshua.
>
> ---------------------------------------------------------------------
> 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[at]httpd.apache.org
> " from the digest: users-digest-unsubscribe[at]httpd.apache.org
> For additional commands, e-mail: users-help[at]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[at]httpd.apache.org
" from the digest: users-digest-unsubscribe[at]httpd.apache.org
For additional commands, e-mail: users-help[at]httpd.apache.org

Apache users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact lists@gossamer-threads.com
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.