CodeIgniter Forums
xampp: after virtual host configuration, why redirecting to IIS home - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: xampp: after virtual host configuration, why redirecting to IIS home (/showthread.php?tid=82386)



xampp: after virtual host configuration, why redirecting to IIS home - Ahmed Haroon - 07-05-2022

i am using XAMPP to create php projects on a port 8088 which is running fine. but when i configured to use Virtual Host instead of localhost:8088 now it is redirecting me to IIS home page, i tried another ports but the behavior is same. please note, i am not using IIS Server on this development machine.
the below line unremarkd in httpd.conf file
# Virtual hosts
Include conf/extra/httpd-vhosts.conf

my file entry in: httpd-vhosts.conf
Code:
<VirtualHost *:8088>
    ServerName taskapp.localhost
   
    DocumentRoot "D:\xampp\htdocs\taskapp\public"

    <Directory "D:\xampp\htdocs\taskapp\public">
        Require all granted
        AllowOverride All
    </Directory>
</VirtualHost>
any idea, what can be the issue? how to resolve it?

regards


RE: xampp: after virtual host configuration, why redirecting to IIS home - Ahmed Haroon - 07-05-2022

ok, its gone now when execute below on PowerShell run as Administrator: 
Get-WindowsOptionalFeature -online | ? featurename -like "IIS" | Disable-WindowsOptionalFeature -Online -Remove 
but still can't get the page, now it says "This site can't be reached" please help.


RE: xampp: after virtual host configuration, why redirecting to IIS home - InsiteFX - 07-05-2022

You need to be logged in as Administrator.

Edit hosts file with NotePad
C:\Windows\System32\drivers\etc\hosts

IP4 Server Name
127.0.0.1 ci4.local


RE: xampp: after virtual host configuration, why redirecting to IIS home - Ahmed Haroon - 07-05-2022

thank you @InsiteFX 
also i was searching on net for this problem, somebody informed that use Laragon to have virtual hosts automatically created for you. i will give it a try.
please advice for it and if anything i have to care about using Laragon.
regards