Create the following Folders in C:/xampp/www/sa3bin:
logs
error
cgi-bin
error_pages
Create the following files in C:/xampp/www/sa3bin:
.htaccess
in your httpd-vhosts.conf replace your old virtualhost with this one:
<VirtualHost *:80>
ServerName sa3bin.zapto.org
ServerAdmin
sa3bin@sa3bin.zapto.org
ServerAlias
www.sa3bin.zapto.org
DocumentRoot /xampp/www/sa3bin
<Directory />
Options FollowSymLinks
AllowOverride None
</Directory>
<Directory "/xampp/www/sa3bin">
Options Indexes FollowSymLinks
AllowOverride All
Order allow,deny
Allow from all
</Directory>
<Directory "/xampp/www/sa3bin">
Options Includes
AddType text/html .shtml
AddOutputFilter INCLUDES .shtml
AddHandler server-parsed .html .htm .shtml .shtm
</Directory>
HostnameLookups Off
ErrorLog /xampp/www/sa3bin/logs/error_log.txt
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
CustomLog /xampp/www/sa3bin/logs/access_log.txt combined
ServerSignature On
ScriptAlias /cgi-bin/ "/xampp/www/sa3bin/cgi-bin/"
<Directory "/xampp/www/sa3bin/cgi-bin">
AllowOverride None
Options None
Order allow,deny
Allow from all
</Directory>
DirectoryIndex index.php index.html index.htm index.shtml index.shtm
ErrorDocument 400 /error_pages/400.html
ErrorDocument 403 /error_pages/403.html
ErrorDocument 404 /error_pages/404.html
AccessFileName .htaccess
AddHandler cgi-script .cgi
<IfModule mod_negotiation.so>
<IfModule mod_include.so>
Alias /error/ "/xampp/www/sa3bin/error/"
<Directory "/xampp/www/sa3bin/error">
AllowOverride None
Options IncludesNoExec
AddHandler type-map var
Order allow,deny
Allow from all
LanguagePriority en
</Directory>
</IfModule>
</IfModule>
</VirtualHost>
<VirtualHost *:80>
ServerName localhost
DocumentRoot /xampp/htdocs
</VirtualHost>
http://xampptutorials.com