Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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.

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

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

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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