Skip to content

Windows Hosts File

An Old Windows Hosts File Settings

Windows hosts file located at:
C:\Windows\System32\drivers\etc\hosts

    127.0.0.1       localhost
    ::1             localhost
    127.0.0.1       localci

Apache hosts file:
C:\xampp\apache\conf\extra\httpd-vhosts.conf

    NameVirtualHost *:80

    <VirtualHost *:80>
        DocumentRoot "C:\xampp\htdocs"
        ServerName localhost
    </VirtualHost>

    <VirtualHost *:80>
        DocumentRoot "C:\xampp\htdocs\ci"
        ServerName localci
    </VirtualHost>