Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm using Apache2 to proxy Jenkins to port 80 on my server. The problem is, this server is open to the world so I want to set some sort of authentication so you have to login to get to the Jenkins page.

It's only for one user account so I don't need a db back end. Just a flat-file with username and password or something like that for Apache to prompt for before it displays the page.

Jenkins is the only thing apache is presenting.

What's the best way to do this?

Thanks,

David

share|improve this question
add comment

1 Answer

For just one username and password, I'd go with the mod_auth_basic module. There's infromation about it at apache.org. It allows you to require users to enter username and password, which are stored in a htpwasswd file.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.