|
|
@ -54,14 +54,14 @@ can execute it: |
|
|
|
Configuring Apache |
|
|
|
Configuring Apache |
|
|
|
------------------ |
|
|
|
------------------ |
|
|
|
|
|
|
|
|
|
|
|
The example above is good enough for a basic Apache deployment but your `.fcgi` |
|
|
|
The example above is good enough for a basic Apache deployment but your |
|
|
|
file will appear in your application URL e.g. |
|
|
|
`.fcgi` file will appear in your application URL e.g. |
|
|
|
example.com/yourapplication.fcgi/news/. There are few ways to configure your |
|
|
|
example.com/yourapplication.fcgi/news/. There are few ways to configure |
|
|
|
application so that yourapplication.fcgi does not appear in the URL. A |
|
|
|
your application so that yourapplication.fcgi does not appear in the URL. |
|
|
|
preferable way is to use the ScriptAlias and SetHandler configuration directives |
|
|
|
A preferable way is to use the ScriptAlias and SetHandler configuration |
|
|
|
to route requests to the FastCGI server. The following example uses |
|
|
|
directives to route requests to the FastCGI server. The following example |
|
|
|
FastCgiServer to start 5 instances of the application which will handle all |
|
|
|
uses FastCgiServer to start 5 instances of the application which will |
|
|
|
incoming requests: |
|
|
|
handle all incoming requests:: |
|
|
|
|
|
|
|
|
|
|
|
LoadModule fastcgi_module /usr/lib64/httpd/modules/mod_fastcgi.so |
|
|
|
LoadModule fastcgi_module /usr/lib64/httpd/modules/mod_fastcgi.so |
|
|
|
|
|
|
|
|
|
|
@ -79,10 +79,11 @@ incoming requests: |
|
|
|
</Location> |
|
|
|
</Location> |
|
|
|
</VirtualHost> |
|
|
|
</VirtualHost> |
|
|
|
|
|
|
|
|
|
|
|
These processes will be managed by Apache. If you're using an standalone FastCGI |
|
|
|
These processes will be managed by Apache. If you're using an standalone |
|
|
|
server, you can use the FastCgiExternalServer directive instead. Note that in |
|
|
|
FastCGI server, you can use the FastCgiExternalServer directive instead. |
|
|
|
the following the path is not real, it's simply used as an identifier to other |
|
|
|
Note that in the following the path is not real, it's simply used as an |
|
|
|
directives such as AliasMatch: |
|
|
|
identifier to other |
|
|
|
|
|
|
|
directives such as AliasMatch:: |
|
|
|
|
|
|
|
|
|
|
|
FastCgiServer /var/www/html/yourapplication -host 127.0.0.1:3000 |
|
|
|
FastCgiServer /var/www/html/yourapplication -host 127.0.0.1:3000 |
|
|
|
|
|
|
|
|
|
|
|