Hello everyone,
First of all I apologize if this has been asked before (I couldn't find it on the forum)...
I need some advice (and quite possibly further instructions on how to achieve the following scenario).
Server 1 has an IP of 45.40.40.40 with a Joomla installation, running lighttpd with fastcgi and rewrite rules, working flawlessly at domain example.com
Server 2 has an IP of 55.50.50.50 with a Java LMS, running on Tomcat (port 8080) with a context path of /lmspath. The LMS works when typing : 55.50.50.50:8080/lmspath (actually redirecting to55.50.50.50:8080/lmspath/dmz).
As you may have guessed by now, I am trying to make Server 2 being called when someone types : example.com/lmspath and any of its subfolders (i.e. example.com/lmspath/repository etc.).
Coming across some similar articles I believe mod_proxy has to be used (I could be wrong, so if I am and there's a better way, please, correct me) ?
However I have been unable to do so (getting a 404 error) so far.
Here's an extract of Server 1's lighttpd.conf :
I have enabled "mod_proxy" (actually added the line - wasn't in the conf before) and lighttpd DOES start. But for some reason I still get the dreaded 404 error.Code:#Lighttpd re-writes url.rewrite-if-not-file = ( "^/$" => "$0", "^/(authorcentral|awstats|phpmyadmin|administrator).*" => "$0", "^/(.*)" => "/index.php/$1" ) #Example Proxy redirect - DOES NOT WORK! $HTTP["url"] =~ "^/lmspath/" { proxy.server = ( "" => ( ( "host" => "55.50.50.50", "port" => 8080 ) ) ) }
Anyone has a solution for such a scenario?
Thanks in advance!,
Alex

Reply With Quote