View Single Post
Old 05-13-2003, 12:58 PM   #1 (permalink)
Epsilon
Regular Contributor
 
Epsilon's Avatar
 
Join Date: Mar 2003
Location: Las Vegas, NV
Posts: 131
Epsilon is on a distinguished road
Requiring user authentication based on port number

System: RedHat 7.2, Apache 1.3

I disabled the use of .htaccess for per-directory options on my machine and I put all my Auth directives in httpd.conf. It works great, and improves performance. (another tip: Disable SSI. With PHP, SSI has become obsolete and it slows down the server.)

Anyway, I'm trying to figure out a way to configure User Auth against a .htpasswd file only for a certain port. For example, if a request comes in to 12.34.56.78:80 no authentication, but for 12.34.56.78:10000 require valid-user.

I know there must be some way (probably simple) to set this up in the VirtualHost section of httpd.conf, just not sure how. Anyone know?
__________________
--Epsilon--
Epsilon is offline   Reply With Quote