Posted by:
VcDeveloper
(---.dsl.skt2ca.sbcglobal.net)
I'm running Window 2008 R2 Datacenter w/Hyper-V Management, w/A Windows 2008 R2 Web Server. My Setting look like this and I hope it helps you out:
httpd.conf - these are the only changes I made to the default: I left Listen 80 as is!
1) ServerName 127.0.0.1:80
2) <Directory "c:/wamp/www/">
Allow from 127.0.0.1, 192.168.1
3) Added
# Sorry, no svn peeking
<DirectoryMatch ".svn">
# Currently pointing back to drupal
# High traffic sites might want custom
# error pages, no need to load drupal
ErrorDocument 403 /index.php
Order allow,deny
Deny from all
Satisfy All
</DirectoryMatch>
# Allow the .htaccess files to be used in the sites folder where /files are stored
<Directory "C:/some-folder/some-folder/some-folder/6/sites">
AllowOverride
</Directory>
<Directory "C:/some-folder/some-folder/some-folder/7/drupal-7.0/sites">
AllowOverride
</Directory>
# Block off access to admin and devel - just in case you're using on production
# this is very strict because it's limited based on IP addresses
# adjust as needed
<LocationMatch "/(admin|devel)">
Order deny,allow
Include "C:/wamp/bin/apache/Apache2.2.17/conf/httpd-ip.conf"
Deny from all
</LocationMatch>
# Define your own file limitations on drupal files
<FilesMatch "(install.php|cron.php|phpinfo.php|update.php|.txt)$">
Order deny,allow
Include "C:/wamp/bin/apache/Apache2.2.17/conf/httpd-ip.conf"
Deny from all
</FilesMatch>
4) # Virtual hosts
Include conf/extra/httpd-vhosts.conf
httpd-vhosts.conf - these are the additions of my setup: NameVirtualHost *:80 as is
<VirtualHost *:80>
ServerAdmin
support@domain-name.comServerName domain-name.com
ServerAlias www.domain-name.com
DocumentRoot "C:/some-folder/some-folder/some-folder/6"
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "C:/some-folder/some-folder/some-folder/6">
Options Indexes FollowSymLinks MultiViews
AllowOverride None
Order allow,deny
allow from all
<FilesMatch "robots.txt">
Allow from all
</FilesMatch>
# Read in Drupal default .htaccess file asif conf - easier CVS management
Include "C:/some-folder/some-folder/some-folder/6/.htaccess"
</Directory>
ErrorLog "C:/wamp/bin/apache/Apache2.2.17/logs/error-domain-name.log"
# Possible values include: debug, info, notice, warn, error, crit,
# alert, emerg.
LogLevel warn
CustomLog "C:/wamp/bin/apache/Apache2.2.17/logs/access-domain-name.log" combined
</VirtualHost>
Edited 2 time(s). Last edit at 03/13/2011 12:04AM by VcDeveloper.