Project

General

Profile

[Solved] how to set unix alias inside of lighttpd conf

Added by mv.ashwin@gmail.com almost 6 years ago

may be not the right place to ask, need help to set an unix alias for my web page.

my webpage calls an ajax .pl which uses a version of tool. i need to control the version of tool in my configuration files. i use lighttpd in this case.

ex: .pl calls "grep pattern file"
I need to control grep from where its used.
alias grep /usr/custom/scripts/bin/grep


Replies (1)

RE: how to set unix alias inside of lighttpd conf - Added by gstrauss almost 6 years ago

A shell alias is for interactive shells. You can set PATH before starting lighttpd, or you can use mod_setenv to set PATH for your CGI requests. (In your environment: PATH=/usr/custom/scripts/bin:$PATH but you'll have to spell it out in lighttpd.conf, and not use $PATH)

    (1-1/1)