Copying site from external LAMP VPS to Debian/Nginx Linode?

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!

5 Replies

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.

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?

You know, Apache will read your .htaccess files without you having to do any work at all.

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.

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.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct