0

So I am running lighttpd and am in the process of hacking together a simple pastebin-like scipt.

I have set up pb.domain.blah to run a perl cgi script (it is set in index-file.names) and was wondering if it would be possible to have something like pb.domain.blah/ASD123 also run the cgi script but pass ASD123 as an argument to perl instead it's current behavior of trying to find ASD123 in the document-root for pb.domain.blah.

I want to avoid having to have the url like pb.domain.blah/scipt.pl?ASD123 and would prefer the form mentioned above.

Does anyone know how I could acheive this.

0

You can simply use mod_rewrite to map such requests to your Perl script.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.