Portal Home > Knowledgebase > Articles Database > Will my site work on nginx?


Will my site work on nginx?




Posted by LanceTan, 01-26-2011, 03:42 AM
I'm thinking about using nginx for my next website, which will be a Youtube-like clone. I've been testing it on Apache, but I don't know if it will work on nginx because I have little to no knowledge of nginx or even webservers in general. Basically the things I need are PHP, mysql, ffmpeg, ffmpeg-php, ruby, jquery, and I think that's it. Can I use all of these with nginx? Last edited by LanceTan; 01-26-2011 at 03:51 AM.

Posted by CH-Shaun, 01-26-2011, 04:31 AM
Nginx isn't compatible with Apache's .htaccess file. Althhough nginx works fine with the following mentioned above.

Posted by LanceTan, 01-26-2011, 04:32 AM
There's ways to rewrite urls that are similar though right?

Posted by bsdvps, 01-26-2011, 04:38 AM
Sign up on nginx's mailing list. There is a wealth of information on there that is worth it's weight in gold. Maxim Dounin and Igor Sysoev, who is the developer, routinely reply very very quickly to people's questions. I sign up for the list and allow Thunderbird to put all the emails from the mailing list into a folder so I can search for keywords within that folder rather than relying on Google. Maxim replies very quickly to questions.

Posted by funkywizard, 01-27-2011, 09:42 AM
Yes, there are. You would edit the nginx.conf file with whatever rewrite rules you need. The syntax isn't the same, but it works. I agree with what others said here. The nginx mailing list is pretty helpful and people there know what they're doing. FWIW, I would definitely recommend using nginx for any kind of video serving over using apache. If you have trouble getting your programs to work in nginx instead of apache, one option is to use nginx as a reverse proxy to apache. You can then modify your app, so instead of sending the client whatever file they asked for, you send nginx back a reproxy-url header, which basically tells nginx "hey, send them this file over here", which gives you the benefit of serving your videos in nginx, without having to completely ditch apache if you don't want to.



Was this answer helpful?

Add to Favourites Add to Favourites    Print this Article Print this Article

Also Read
Could you tracert (Views: 836)

Language: