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?
The solution is uncomment this module in the file httpd.conf:
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
The solution is to just restart apache under the XAMPP control panel.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With