Welcome Guest, Not a member yet? Register   Sign In
xampp: after virtual host configuration, why redirecting to IIS home
#1
Question 
(This post was last modified: 07-05-2022, 05:42 AM by Ahmed Haroon.)

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
Newbie here in CodeIgniter World !! Please appologize if any nonsense from me.  
environment: Windows 10, XAMPP 3.3.0, VS Code, SQLyog Community Ed. 
Reply
#2

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.
Newbie here in CodeIgniter World !! Please appologize if any nonsense from me.  
environment: Windows 10, XAMPP 3.3.0, VS Code, SQLyog Community Ed. 
Reply
#3

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
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply
#4

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
Newbie here in CodeIgniter World !! Please appologize if any nonsense from me.  
environment: Windows 10, XAMPP 3.3.0, VS Code, SQLyog Community Ed. 
Reply




Theme © iAndrew 2016 - Forum software by © MyBB