apache - localhost redirects to one of local websites -
i added c:/windows/system32/drivers/etc/hosts:
127.0.0.1 mywebiste
and in httpd-vhosts.conf added:
<virtualhost *:80> serveradmin webmaster@dummy-host2.example.com documentroot "c:/xampp/htdocs/mywebiste" servername mywebsite errorlog "logs/error.log" customlog "logs/access.log" common <directory "c:/xampp/htdocs/mywebiste"> options indexes followsymlinks multiviews options -indexes allowoverride none order allow,deny allow #redirectmatch ^/$ / index.php options +followsymlinks indexignore */* rewriteengine on rewritecond %{request_filename} !-f rewritecond %{request_filename} !-d rewriterule . index.php </directory> </virtualhost>
and when want add new website hosts file , httpd-vhosts.conf renders 'mywebsite' , cant access website, if delete virtualhost in httpd-vhosts.conf , remove entry hosts file still renders 'mywebsite'. should fix this, have no clue?
Comments
Post a Comment