Project

General

Profile

couldn't parse jsp syntax

Added by brendenl over 4 years ago

Hi All .
I would like to run some *.jsp files on lighttpd within a embed system .
I modified the mimetype.assign in lighttpd.conf as follow

".htm" => "text/html",
".jsp" => "text/html",

But when i try to run the jsp file , browser show all the file content without JSP syntax .
see above !!


Replies (4)

RE: couldn't parse jsp syntax - Added by gstrauss over 4 years ago

Configuring mimetype.assign merely configures the Content-Type response header. Whatever else you are expecting lighttpd to do must be configured.

You might consider configuring lighttpd to use mod_proxy to proxy back to something like a Tomcat server which processes the Java server pages.

RE: couldn't parse jsp syntax - Added by brendenl over 4 years ago

attach welcome.jsp
! !! !
lightthpd version : 1.4.35
attach lighttpd.conf
!!
Does lighttpd support JSP ?
if yes how to configure it ?
Thanks -Brenden

RE: couldn't parse jsp syntax - Added by brendenl over 4 years ago

Thanks gstrauss .
You mean in addition to lighttpd , i have to install tomcat (another http server) in embed system .
it take to much footprint for a embed system .
If it is try i have to consider use other script language to replace JSP .
Does lighttpd support PHP without any plugin or another http server ?

RE: couldn't parse jsp syntax - Added by gstrauss over 4 years ago

lightthpd version : 1.4.35

lighttpd 1.4.35 was released almost 6 years ago. Latest version of lighttpd is lighttpd 1.4.54 and is the recommended version to run.

.

lighttpd supports running PHP as CGI mod_cgi or FastCGI mod_fastcgi

Please read some docs and use your favorite search engine to look up some examples.

    (1-4/4)