croque-monsieur Code
Brought to you by:
kakolukia
project description: croque-monsieur is an application to manage your hosts-file (your computer's internal DNS). You can add, edit and remove entries to your hosts-file. You can use croque-monsieur to block certain websites or for webdevelopment. When using an Apache webserver you might be interested in the following vhosts settings: <VirtualHost *:80> ServerAlias *.local RewriteEngine on RewriteCond %{HTTP_HOST} !^www.* [NC] RewriteCond %{HTTP_HOST} ^([^\.]+)\.local RewriteCond X:/apache/websites/%1 -d RewriteRule ^(.*) /%1/$1 [L] </VirtualHost> This way all url's ending with .local will automaticly access a subdirectory according to their url. For example: http://testwebsite.local wil automaticly access X:/apache/websites/testwebsite/ You now only need the add testwebsite.local in croque-monsieur to be able to access the url. url: croque-monsieur can be found at https://sourceforge.net/projects/croque-monsieur The quality of this release: Working fine: croque-monsieur does exactly what it has been made for. Some feature-requests can be found at source-forge wich might be added in the future. Enjoy croque-monsieur!