Jump to content

How to htaccess-protection with vHosts under Apache2


micronax

Recommended Posts

Hey,
How to configure the [b]Apache [u]2[/u]-Server[/b] to get a htaccess-protection with htpasswd2 working under a vhost?
I think, there're some settings in the httpd.conf or httpd-vhosts.conf. But I'm not a professional in this subject.


Thanks

Regards,
Micronax Systems
as long as apache is looking for .htaccess files it will work exactly the same with or with out virtual hosts.  simply create a .htacces file in the directory that should be protected as you would normaly.  Apache will not look in specific places for .htaccess files but everywere!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.