Hello, I just setup lighttpd as a web server, tomcat as an application server in which there is meshcms running.
Tomcat is setup to run on localhost port 8080 and is proxied using lighttpd like this:
Code:
$HTTP["host"] == "tomcat.example.org" {
server.document-root = "/srv/www"
server.errorlog = "/var/log/lighttpd/tomcat_error.log"
accesslog.filename = "/var/log/lighttpd/tomcat_access.log"
server.max-keep-alive-requests = 20
server.tag = "lighttpd"
proxy.server = ( "" =>
( (
"host" => "127.0.0.1",
"port" => 8080
)
)
)
}
Now, when I wanna access the meshcms app, I need to call it this way:
http://localhost/meshcms or
http://tomcat.example.org/meshcms.
Is it possible in lighttpd to create a rule which will allow me to use the url from this
http://tomcat.example.org/meshcms/index.html to
http://tomcat.example.org/index.html ?
In tomcat wouldn't be very easy as it's deployed as a war, but I suppose in lighttpd using some kind of a rewrite rule could be possible. I'm not good at all at rewrite rules, so please anyone if you got some ideas let me know.
Thank you.