[clug] Apache 2 htpasswd port 8000

Paul Wayper paulway at mabula.net
Mon Jun 12 22:21:40 GMT 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike J wrote:
> But i have installed another application that runs from port 8000, there
> is no restriction on this and the apache config wasn't modified for this
> to work.
> So I was wandering if i can set some sort of password when a user tries
> to go to http://localhost:8000/

If you've got another application running on 8000, then first see if it offers
authentication.  If it doesn't, then put it on another port and use iptables
to limit access to that port to localhost only.  Then use Apache's proxying
capabilities to run a proxy on port 8000 to this new port, and then set up
authentication on this proxy port in Apache.

HTH,

Paul
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFEjej0u7W0U8VsXYIRAi5MAJ0V85ytD1xe5Ena3nRwP29iiGqaOQCgmdft
dwpzCVWHBL13TZbGfIC1jag=
=sXwq
-----END PGP SIGNATURE-----


More information about the linux mailing list