Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I copy/paste htpasswd files to my new server?

Tags:

.htpasswd

I'm documenting the procedure for a full redeploy on my development server. Small staff, using Basic authentication (over SSL, of course) with an htpasswd file backend.

Is it safe to transfer the .htpasswd file as-is?

The Operating Systems will potentially differ, but the software on top (ie. Apache) will be the same.

like image 909
jds Avatar asked Nov 04 '08 20:11

jds


2 Answers

It's safe to transfer the htpasswd file no matter what architectures you are on. It is a text file. The only case in which you might need to do some conversions is to deal with line endings if you were moving between Unix and Windows, but between Linux/Unix boxes, no problems.

like image 79
Andru Luvisi Avatar answered Nov 13 '22 04:11

Andru Luvisi


Short answer: Yes you can.

That's all you need to know.

like image 35
Edson Medina Avatar answered Nov 13 '22 04:11

Edson Medina