A simple example
In the following examples I’m going to assume a few things:
- All software is installed in
- You’re able to add and change virtual hosts at will
- We’ll use some directories in
- The Web server is on the machine with the IP address 192.168.1.100
If that’s not the case on your system, make sure to adapt the examples according to your setup.
add this line to your
LoadModule fastcgi_modules modules/mod_fastcgi.so
Also make sure to comment all lines loading
For the first test, let’s create a new virtual host:
<VirtualHost *> ServerName fcgi.test.local FastCGIExternalServer /srv/www/fcgi -host 127.0.0.1:9000 DocumentRoot /srv/www/fcgi <Directory /srv/www/fcgi> AllowOverride All Order Allow,Deny Allow from all </Directoy> </VirtualHost>
As you can see, in the first example the path option for the
directive is exactly the same as the
By doing this, you’re basically telling Apache, that everything that resides in this very directory should be handled by
which in turn will pass it on to the external server we specified.
So, let’s check it out.