Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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/ and would prefer the form mentioned above.

Does anyone know how I could acheive this.

share|improve this question
up vote 0 down vote accepted

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

share|improve this answer

Your Answer


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.