FastCgiServer on Apache2 - User/Group definitions
Trejkaz <[email protected]>
| Newsgroups | gmane.comp.web.fastcgi.devel |
|---|---|
| Message-ID | <[email protected]> |
FastCGI seems to have worked straight out of the box on Gentoo, which is
great. I'm now trying to set an environment variable to have Rails work in
production mode instead of development mode, by way of the FastCgiServer
command.
In my vhost configuration but outside the vhost section, I have:
FastCgiServer /path/to/typo/public/dispatch.fcgi -idle-timeout 120 \
-initial-env RAILS_ENV=production -processes 10
In my commonapache2.conf, which is included earlier, I have:
User apache
Group apache
But despite this, when I try to run Apache, I get this error message:
FastCgiServer /path/to/typo/public/dispatch.fcgi: User/Group commands
must preceed FastCGI server definitions
I've tried adding the User and Group lines in a second time right before the
FastCgiServer line, but the same error message comes up regardless.
It seems like this error message is wrong. I must be doing something wrong,
assuming that this feature works for other people, but since the User and
Group commands do *precede* the FastCgiServer command, the wrong error
message is obviously coming up.
Any ideas on what I'm doing wrong anyway?
TX
--
Email: Trejkaz Xaoza <[email protected]>
Web site: http://trypticon.org/
Jabber ID: [email protected]
GPG Fingerprint: 9EEB 97D7 8F7B 7977 F39F A62C B8C7 BC8B 037E EA73
___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
signature.asc
(application/pgp-signature, 189 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBC/oYSuMe8iwN+6nMRAjeiAJ9YmO4b9XXm+8Mz5xszBjwagWlXiQCfeZYr BxPs6urDtQ5WgEzfWrjayCo= =DQyL -----END PGP SIGNATURE-----