Wamp Configuration Virtual Hosts

This guide will change the document root, create a virtual host, bypass proxy(if behind corporate server)for the virtual host. 1. Change 2 entries in httpd.conf DocumentRoot “c:/wamp/www/” to DocumentRoot “d:/webdir/” and <Directory “c:/wamp/www/”> to <Directory “d:/webdir/”> 2. Search for and uncomment the line below to enable virtual hosts # Virtual hosts Include conf/extra/httpd-vhosts.conf 3. Add […]

Read More

Force Files To Download Instead Of Open In Web Browser

You can change the file directivies for a folder by adding a .htaccess file in the folder and including the following code: <IfModule mod_headers.c> <FilesMatch “\.(?i:mp3|ogg)$”> ForceType application/octet-stream Header set Content-Disposition attachment </FilesMatch> </IfModule> This will force .mp3 and .ogg files to prompt for action rather than open with the default browser setting. The IfModule […]

Read More