Setting Virtual Host with XAMPP

<VirtualHost *:8080>
    DocumentRoot "C:\DIR"
    ServerName domain.localhost
    <Directory "C:\DIR">
        Options Indexes FollowSymLinks Includes ExecCGI
        AllowOverride All
        Require all granted
    </Directory>
 php_flag display_errors on
    php_value error_reporting 6143
    php_flag log_errors on
    php_value error_log "C:\DIR"
</VirtualHost>

(e.g. for Xampp 1.7.7. )

<VirtualHost *:80>
 DocumentRoot C:/DIR
 ServerName domain.local

 <Directory "C:/DIR">
  Options Indexes FollowSymLinks Includes ExecCGI
  AllowOverride All
  Order allow,deny
  Allow from all
 </Directory>
</VirtualHost>
It's only fair to share...Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Leave a Reply

Your email address will not be published. Required fields are marked *