Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XAMPP Apache redirect my virtualhost to /dashboard

Tags:

php

apache

I config my apache hostname and virtualhost in XAMPP on Mac.

But, when I access to host url, xampp redirects me to /dashboard: mydomain.dev/dashboard

This is my httpd-vhosts.conf:

# Virtual Hosts

<VirtualHost *:80>
    DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/web_frikinow/public"
    ServerName mydomain.dev
</VirtualHost>

And this is my /etc/hosts file:

##
# Host Database
#
# localhost is used to configure the loopback interface
# when the system is booting.  Do not change this entry.
##
127.0.0.1       localhost
255.255.255.255 broadcasthost
::1             localhost
127.0.0.1 mydomain.dev
127.0.0.1 Funny-Frontend # added by Apache Friends XAMPP

Whats is the problem?

like image 345
Funny Frontend Avatar asked Dec 19 '15 21:12

Funny Frontend


2 Answers

The solution is uncomment this module in the file httpd.conf:

# Virtual hosts
Include etc/extra/httpd-vhosts.conf
like image 187
Funny Frontend Avatar answered Sep 22 '22 21:09

Funny Frontend


The solution is to just restart apache under the XAMPP control panel.

like image 26
Hanson Avatar answered Sep 22 '22 21:09

Hanson