Adult Script Pro Community Forums

The forum is here for legacy reasons. No new posts will be created. User registration is disabled! If you have any questions, please email us or check https://www.adultscriptpro.com for more details!

You are not logged in.

#1 2011-06-09 16:02:50

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Nginx anyone ?

Hi, i tried to migrate to NGINX. Anyone using NGINX incl. http://wiki.nginx.org/HttpSecureLinkModule working ?

This drives me crazy smile

See here: http://forum.nginx.org/read.php?2,173863,173877

Thats not my thread there, just found that via google. Did the patching stuff already.


sgt-halfsize-banner.jpg

Offline

#2 2011-06-09 22:14:41

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Nginx anyone ?

Nginx has a smaller footprint than lighttpd so it is lighter on the server. But, it isn't faster. There is also less security in nginx streaming than lighttpd. I would probably say that overall, it is better to stream with Apache than lighttpd. One of the biggest problems with lighttpd is that it doesn't support multiple threads. This means that for servers that have multiple cores, lighttpd won't scale across them. Apache, however, can. For very powerful servers, it is actually better to stream with Apache (even though lighttpd is faster) as it can use more of the system's resources than can lighttpd.


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#3 2011-06-09 22:45:34

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Nginx anyone ?

Thats only half of the truth smile

http://redmine.lighttpd.net/wiki/1/Docs:MultiProcessor

About not NGINX not being faster than Lighty:

If NGINX uses only the half of the CPU Load, we have more resources left for other processes, eg: converting, serving under heavy load. Nginx uses only the half of CPU and MEM under heavy Load.
http://wiki.nginx.org/WhyUseIt

BTW: Lighty Streams for Youtube wink http://highscalability.com/youtube-architecture

For the streaming Security: Lighttpd is not secure - i do not talk about rtmp - i can download EVERY video "secured" by mod_secdownload.

And NGINX has something similar to Lightys secdownload. Link in my first post.


sgt-halfsize-banner.jpg

Offline

#4 2011-06-09 23:18:38

Eri
Member
Registered: 2011-03-18
Posts: 977

Re: Nginx anyone ?

Having main script and videos at the same server, though, lighttpd is probably a better way to go. I have my site on multiservers with lighttpd and sec_download but if a video is up to 100Mb I have load problems and the CPU usage is 10%. Here is the bug and i will fix it now tongue http://blog.lighttpd.net/articles/2005/ … -downloads , Thanks for the link

Maybe this will help you
https://calomel.org/nginx.html

Last edited by Eri (2011-06-09 23:40:53)


Best Adult Affilitate Network:
ExoClick
Best Deals on Dedicated Servers - CDN
INXY

Offline

#5 2011-06-10 12:54:40

Coscast
Member
From: Germany
Registered: 2010-10-03
Posts: 546

Re: Nginx anyone ?

Thanks for the link, but i have nginx up and running ( for testing purposes not on port 80 ).
My Problem is to get this http://wiki.nginx.org/HttpSecureLinkModule running.
Ok, the plugin is working, but nginx has another url construction than lighttpd.
As far as i see /modules/video/helpers/stream.php does this, but for the urls that lighty needs.
Maybe Adrian can take a look into it.

Maybe a selector in admin cp under video -> configure -> view -> streaming settings wink


sgt-halfsize-banner.jpg

Offline

#6 2011-06-11 08:13:37

symtab
Administrator
Registered: 2010-08-23
Posts: 7,501
Website

Re: Nginx anyone ?

I could add a selector in Admin once i finish my exams for the university. I personally use and consider lighttpd very good (not to mention youtube uses it). The combination of lighttpd + memcache + sphinx is actually used by a lot of big sites (in total or partial).


Adult Scripts: Adult Script Pro - Adult Search Script
Adult Advertising/Traffic: Plug Rush - EXOClick - PopAds

Offline

Board footer

Powered by FluxBB