httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alain Roger <>
Subject [users@httpd] virtualhost on localhost with .htaccess
Date Fri, 06 Jan 2012 23:31:39 GMT

on my local computer (localhost on windows 7) i installed Apache to use
I setup virtual host (\apache\conf\extra\httpd-vhosts.conf) and it works

now for each virtual host, i would like to use a special .htaccess file, so
i added:
AccessFileName .htaccess

here is an example of a virtualhost:
<VirtualHost *:80>
  DocumentRoot "d:/webserver/www/rogtek17"
  ServerName rogtek17.loc
  ServerAlias www.rogtek17.loc
  ErrorLog "logs/rogtek17.loc.error.log"
  CustomLog "logs/rogtek17.loc.access.log" common

  AccessFileName .htaccess

  <Directory "d:/webserver/www/rogtek17">
    AllowOverride AuthConfig FileInfo
    Order deny,allow
    Deny from all
    Allow from


1. is it correct or should i also update the standar httpd.conf file in the
\apache\conf\ folder ?
2. How to be sure that it is well configured ?

Windows 7 x64 / Fedora 14 x64
PostgreSQL 8.3.5 / MySQL 5
Apache 2.2.16
PHP 5.3.1
C# 2005-2008

View raw message