I just configured lighttpd web server to pass php-fcgi request to an external application server.
The application server is running PHP 5.3 and spawn-fcgi.
The problem is that all the web files need to exist on both the web server and the application server. If I delete the web files from the application server, I get: "no input file specified". If I delete the web files from the web server, I get a 404 error. When the web files are on both the application and web server, it works.
How in the world is this managed? Is there a way to configure just one set of web files with a symbolic link or something across servers? How is this problem usually addressed? Thanks.
LIGHTTPD CONFIG ON THE WEB SERVER
#### fastcgi module fastcgi.server = ( ".php" => ( "app1.geodb.io" => ( "host" => "192.168.167.82", "port" => 8080, "check-local" => "disable", "disable-time" => 3 ) ) )