Can't use subdomain in Chrome using Apache (XAMPP)

566 views Asked by At

I'm using a couple subdomains for a project that I'm working on, but it doesn't want to render the page locally and gives this error:

This webpage is not available
ERR_ICANN_NAME_COLLISION

I thought this might be related to this issue, but making a change from .dev to .local (or the other suggestion) doesn't solve the issue, and it still provides the above error no matter the extension. I'm also able to use my project.dev domain with no issues and all my other projects with .dev extensions work. These subdomains used to work, but now about 3 months later now that development is continuing they are no longer working, anyone have any ideas what the issue might be?

vhosts

<VirtualHost *:80>

    # Host that will serve this project
    ServerName project.dev
    ServerAlias project.dev

    # The location of our projects public directory
    DocumentRoot "D:/htdocs/project/app/webroot"

    # Useful logs for debug
    ErrorLog "logs/project.dev-error.log"
    CustomLog "logs/project-access.log" common

    # Rewrites for pretty URLs, better not to rely on .htaccess
    <Directory "D:/htdocs/project/">
        <IfModule mod_rewrite.c>
            Options -MultiViews
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^ index.php [L]
        </IfModule>
    </Directory>

</VirtualHost>

<VirtualHost *:80>

    # Host that will serve this project
    ServerName sales.project.dev
    ServerAlias sales.project.dev

    # The location of our projects public directory
    DocumentRoot "D:/htdocs/project/app/webroot"

    # Useful logs for debug
    ErrorLog "logs/project.dev-error.log"
    CustomLog "logs/project-access.log" common

    # Rewrites for pretty URLs, better not to rely on .htaccess
    <Directory "D:/htdocs/project/">
        <IfModule mod_rewrite.c>
            Options -MultiViews
            RewriteEngine On
            RewriteCond %{REQUEST_FILENAME} !-f
            RewriteRule ^ index.php [L]
        </IfModule>
    </Directory>

</VirtualHost>

hosts

127.0.0.1           project.dev
0

There are 0 answers