Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Sun Feb 07, 2010 8:29 am 
Offline
Newbie

Joined: Sun Feb 07, 2010 8:05 am
Posts: 3
Website: http://www.puremotorsport.tv
WLM: bigkevracer@hotmail.com
Location: Adelaide, Australia
Hi all.

I'm currently trying to figure out how to sync between my current, live LAMP VPS (CentOS) to my new Debian/Nginx Linode.

I'm primarily hosting video, and it was recommended I try Lighttpd, but research showed it couldn't read .htaccess files, so I want to try Nginx.

I'm not that great with Linux, still learning, but have managed to successfully setup Debian Lenny with Nginx, MySQL and PHP.

I was looking into trying to use rsync to sync the two VPSs, but it isn't entirely easy at this point to work out which is which. I also need to sync the MySQL databases.

Has anyone got any ideas how this would work?

Thanks!


Top
   
 Post subject:
PostPosted: Mon Feb 08, 2010 11:50 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
I don't believe that nginx (or any other web server with one exception) supports .htaccess files, which makes perfect sense; .htaccess files are just local Apache config files. They aren't needed with most other web servers. For example. lighttpd provides various matching mechanisms to allow such things to be placed in the main lighttpd config file.

As for that exception that I mentioned, the commercial Litespeed server supports Apache's config file and .htaccess files, as it's designed to be a drop-in replacement. The free version has limitations, however.


Top
   
 Post subject:
PostPosted: Thu Feb 11, 2010 4:34 pm 
Offline
Newbie

Joined: Sun Feb 07, 2010 8:05 am
Posts: 3
Website: http://www.puremotorsport.tv
WLM: bigkevracer@hotmail.com
Location: Adelaide, Australia
For some reason I thought nginx did, which is why I selected it over Lighttp.

The problem I have with .htaccess is they handle some url rewriting, and as the links are all known know I want to keep the links the same.

Is nginx of lighttpd easier to get to work with the data in the htaccess files?


Top
   
 Post subject:
PostPosted: Thu Feb 11, 2010 5:36 pm 
Offline
Senior Member
User avatar

Joined: Sun Feb 08, 2004 7:18 pm
Posts: 562
Location: Austin
You know, Apache will read your .htaccess files without you having to do any work at all.


Top
   
 Post subject:
PostPosted: Fri Feb 12, 2010 3:47 am 
Offline
Newbie

Joined: Sun Feb 07, 2010 8:05 am
Posts: 3
Website: http://www.puremotorsport.tv
WLM: bigkevracer@hotmail.com
Location: Adelaide, Australia
True, but I was lead to believe by someone who knows more than me that because I was hosting video, I was better off with lighttpd (which YouTube uses) because it'll be faster.

If this isn't the case I may as well just stick with a LAMP stack.


Top
   
 Post subject:
PostPosted: Fri Feb 12, 2010 12:23 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
You would be better off, although apache can be tweaked to be a lot more efficient than the default config (which is just plain bad).

nginx/lighttpd both support URL rewriting, they just don't do it from .htaccess files. In lighttpd's case, it does it from the main config file.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 5 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group