Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] nginx
@ 2011-04-12  9:36 Michael Burghart
  2011-04-12 12:35 ` Daniele Salvatore Albano
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Burghart @ 2011-04-12  9:36 UTC (permalink / raw)
  To: buildroot

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Daniele,

nginx seems to compile now :)

What I urgently need for using nginx as replacement for Apache is:
auth_mysql and mod_perl which shoud be possible. Have you tried that so far?

http://code.svn.wordpress.org/nginx_auth_mysql/
http://wiki.nginx.org/NginxEmbeddedPerlModule

- -- 
- --
cheers
- -micha-
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNpB0gAAoJEEMkp/gkis19EFkH/AzFhGRz9tYHdWEbYMCsVd3e
xzQ8SBkSaqjVTHR5TuUtIlaeRN/oLyCZCRKUCcdSEaFjYuoL3Q+o44ht/b3E83je
aQHoKJb1ro7q0/5n7/PU7+RpZFX51m10fICztrQDmyg0IWZuE0Wp9cd28wWsnIKv
8M6tRkJOpNNimKWSJE75fR5v3vexDSKobK2ahCwZpfgrehw2hqCBh+h1P41rNJLA
rJ/olxPE/PyQHIhj43Y6bxXZ/v4L+HZwQOuN524JeBlbi0VsVNI52JsV4rvxOooe
B7dJlqiq3+2l6kOHcwmgKTBpUs7EPd0Sao2KbHaBnxQRTw4zSoTKc4aP7hNMdVU=
=A+kt
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] nginx
  2011-04-12  9:36 [Buildroot] nginx Michael Burghart
@ 2011-04-12 12:35 ` Daniele Salvatore Albano
  2011-04-12 13:03   ` Michael Burghart
  0 siblings, 1 reply; 4+ messages in thread
From: Daniele Salvatore Albano @ 2011-04-12 12:35 UTC (permalink / raw)
  To: buildroot

Il 12/04/2011 11:36, Michael Burghart ha scritto:
 > What I urgently need for using nginx as replacement for Apache is:
 > auth_mysql and mod_perl which shoud be possible. Have you tried that 
so far?
 >
 > http://code.svn.wordpress.org/nginx_auth_mysql/
 > http://wiki.nginx.org/NginxEmbeddedPerlModule

Well, while you can replace auth_mysql i think that a "mod_perl" for 
nginx doesn't exists: nginx embedded perl module is used to as an 
internal language to handle special conditions (i mean to write nginx 
config file parts in perl so it can do what you need programmatically).

If nginx_auth_mysql doesn't work, you can give a look to drizzle 
extension, that works with mysql too, to handle authentication.

Here there are links
http://github.com/chaoslawful/drizzle-nginx-module

If you can use pam, here there is a module that ask to pam for 
authentication
http://web.iti.upv.es/~sto/nginx/

(you need pam-mysql in order to use mysql as authentication backend)

In the end there is auth request that authorize an user using a 
subrequest, in this way you could do a little perl script called via web 
(nginx will use a sub-request) that will authorize the client to connect
http://mdounin.ru/hg/ngx_http_auth_request_module

Here some info on how to use it
http://mdounin.ru/hg/ngx_http_auth_request_module/file/a29d74804ff1/README

If mysql will run on the alix i suggest you to use a simple file based 
authentication because will reduce a lot the load of the system.

Regards perl, you need fast-cgi no other way, here some links
http://library.linode.com/web-servers/nginx/perl-fastcgi/debian-5-lenny
http://blog.oddeven.info/nginx-perl-fastcgi-how-to/
http://staff.adams.edu/~cdmiller/posts/nginx-perl-fastcgi/
http://stackoverflow.com/questions/369850/how-can-i-run-perl-scripts-using-fastcgi-on-nginx

Hope this helps,

Best Regards,
Daniele
-- 
____________________________________________________________
                                         |
Daniele Salvatore Albano                | web site:
  IT Consultant                          | http://www.itechcon.it
  Website Design and Development         |
  Software Engineer and Developer        | e-mail:
  Linux Servers SetUp And Administration | info at itechcon.it
  Embedded Network Solutions             | d.albano at itechcon.it

Ai sensi del D.Lgs. 196/2003 si precisa che le informazioni contenute in 
questo messaggio sono riservate ed a uso esclusivo del destinatario. 
Qualora il messaggio in parola Le fosse pervenuto per errore, La 
invitiamo ad eliminarlo senza copiarlo e a non inoltrarlo a terzi, 
dandocene gentilmente comunicazione. Grazie.
Pursuant to Legislative Decree No. 196/2003, you are hereby informed 
that this message contains confidential information intended only for 
the use of the addressee. If you are not the addressee, and have 
received this message by mistake, please delete it and immediately 
notify us. You may not copy or disseminate this message to anyone. Thank 
you.

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] nginx
  2011-04-12 12:35 ` Daniele Salvatore Albano
@ 2011-04-12 13:03   ` Michael Burghart
       [not found]     ` <4DA46698.8020004@daccii.it>
  0 siblings, 1 reply; 4+ messages in thread
From: Michael Burghart @ 2011-04-12 13:03 UTC (permalink / raw)
  To: buildroot

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Daniele,

thanks a lot for your information and help. Will look through asap.
Very helpful and I think I will use it in future projects :)

Unfortunately our customer insists on using Apache.
Now  I am in real trouble as cross compiling Apache is awful.

Anybody here can help? Perhaps it would be easier to compile Apache
under a chroot of output/target ?! But how do I integrate gcc in my
target filesystem? Haven't found out yet where  I can configure it.

- -- 
- --
cheers
- -micha-
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNpE2NAAoJEEMkp/gkis19XZgH/j1S/RrML+biuKeRYZjgt3Fy
nwJ5ru9U32f39VzdmREqUR3/sdMOt18pnHf0HgNZWrXY18kLXdUoUtGJWAOUIVkk
VyepLyNuIECEWZuyZZu/PEJeAfa+QMSB0HezG2qXch9K6gYNKRWNp6WJTyr21GA6
r6RElIUgUD82Xcje7nZO0y6FGo3uaXadXcBBH0Md3F01O7WG+dUU+sQUByHQOhAU
xR+eyLEbhgj6TweqsbyczxOiyyB5UJTlpvuHg04Ok5/4qTeFv0WrrdVISE2yg/4F
2xIUq7pjULd3j5CgeHBFAqy5xBVQjuC5t6jSsu/3UiSB4FWxcLFwUNlRwhH8Zck=
=kvlb
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

* [Buildroot] nginx
       [not found]     ` <4DA46698.8020004@daccii.it>
@ 2011-04-12 20:49       ` Michael Burghart
  0 siblings, 0 replies; 4+ messages in thread
From: Michael Burghart @ 2011-04-12 20:49 UTC (permalink / raw)
  To: buildroot

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

Am 12.04.2011 16:50, schrieb Daniele Salvatore Albano:
> 
> While i can't change the mind of your customer, but consider that apache
> is "heavy" and, more important, i really don't know if mod_perl works
> with the "microperl" package present in buildroot.

exactly :-(
> 
> Cross compile apache should not be so hard, just try to set up a simple
> apache package with semi-default values ... the main problem is to add
> mod_perl: if microperl package doesn'tsupport mod_perl i think that will
> be REALLY hard support it.
> 
> Use perl in fastcgi instead of mod_perl should be really a lot simpler
> ...  just need to add a package to microperl, nothing more.

the problem is that they already have all web stuff set up and use it.
They only want to have a new base Linux system. The one they use right
now is a Debian the shrunk manually. So I offered them a  reproducable
system. Well, but they still need to support the "old platform". And
that consists of Apache, Perl and mySQL..:-(

That's my problem. I could as well create a LFS system but thats just to
big!

- -- 
- --
cheers
- -micha-
- --
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJNpLrnAAoJEEMkp/gkis19paQH/0L9SBBvH1Gc4jZSW6qWLVDH
nZtPkHFBukK/26EXUuZQJpsiphQRcnSREMnTq4ua3ZenyRLwfE9IosPClMsD+Ldl
dFgv3EHBl8HLud6xcQAzuRmHhbGJUgHx2T0OMG+ViVc2GSOMHop83kx3YZfiBIrF
KwgwGhfRj+2RISXO2/VpO/J2AjI/8T9vZ2NFRTGTpr9erHsi8Z4TfkKVtJilqSvw
Awr+KrNAxWrJV4qIiEUxJKWtcb8lBbfdYW3MZrTzgGnvI/l9Zad5iDEvXqJoZ0hY
rHPAGTY9laIJaUqbscTLoz6lp0QflNd9aGVPgsytxpTU75zsA86xgmnpxgSVJrc=
=SPCU
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-04-12 20:49 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-04-12  9:36 [Buildroot] nginx Michael Burghart
2011-04-12 12:35 ` Daniele Salvatore Albano
2011-04-12 13:03   ` Michael Burghart
     [not found]     ` <4DA46698.8020004@daccii.it>
2011-04-12 20:49       ` Michael Burghart

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox