mod_fastcgi.conf, Apache2 and SuSE 9.2
Manfred Rebentisch <mrebentisch-WqOCh/[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Organization | COMPARAT Software-Entwicklungs-GmbH |
| Message-ID | <[email protected]> |
I want to use FastCGI with Apache2 (prefork) and SuSE 9.2.
SuSE set "fastcgi" to the variable APACHE_MODULES in /etc/sysconfig/apache2
during installation and after a start of rcapache2 there is an entry
LoadModule
fastcgi_module /usr/lib/apache2-prefork/mod_fastcgi.so
in /etc/apache2/sysconfig.d/loadmodule.conf.
The configuration file /etc/apache2/conf.d/mod_fastcgi.conf looks like:
=================
<IfModule mod_fastcgi.c>
ScriptAlias /fcgi-bin/ /srv/www/fcgi-bin/
<Directory "/srv/www/fcgi-bin">
AllowOverride None
Options +ExecCGI -Includes
SetHandler fastcgi-script
Order allow,deny
Allow from all
</Directory>
AddHandler fastcgi-script fcg fcgi fpl
FastCgiExternalServer /srv/www/fcgi-bin/myapp -host localhost:10001
</IfModule>
=================
After calling "rcapache2 restart" I get the message:
ws24:/root # rcapache2 restart
[Tue Jan 18 09:34:38 2005] [warn] The ScriptAlias directive
in /etc/apache2/conf.d/mod_fastcgi.conf at line 13 will probably never match
because it overlaps an earlier ScriptAlias.
Syntax error on line 49 of /etc/apache2/conf.d/mod_fastcgi.conf:
FastCgiExternalServer: redefinition of previously defined class
"/srv/www/fcgi-bin/myapp"
Without the FastCgiExternalServer Entry the message is:
ws24:/root # rcapache2 restart
[Tue Jan 18 09:56:04 2005] [warn] The ScriptAlias directive
in /etc/apache2/conf.d/mod_fastcgi.conf at line 13 will probably never match
because it overlaps an earlier ScriptAlias.
Syntax OK
Shutting down httpd2 (waiting for all children to terminate) done
Starting httpd2 (prefork) [Tue Jan 18 09:56:05 2005] [warn] The ScriptAlias
directive in /etc/apache2/conf.d/mod_fastcgi.conf at line 13 will probably
never match because it overlaps an earlier ScriptAlias.
So, I think, that mod_fastcgi.conf will be loaded twice. But I did not found
the reason.
And, because I can't test with FastCgiExternalServer until today, I don't know
how to call the correct URL from Browser. Is it right to tell
"http://localhost/fcgi-bin/myapp" ?
Thank you for an answer
Manfred
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/