php - Virtual Host directs me to Xampp dashboardGet the solution ↓↓↓
I am trying to run my website on different devices.
I have this in my httpd-vhosts.confiq
NameVirtualHost *:80 <VirtualHost VirtualHost 127.0.0.1:80> ServerAdmin [email protected] DocumentRoot "C:/xampp/htdocs/" ServerName mywebsite.com ErrorLog "logs/dummy-host2.example.com-error.log" CustomLog "logs/dummy-host2.example.com-access.log" common </VirtualHost>
I have uncommented out the hash's that were in the file before changing them.
in my hosts files:
My website folder is like so:
Mywebsite - Home -about -blog -profile - index.php - login -login.php - connections -connections.php
so these are the folders with some of the files inside.
Now when i restart apache and type the following:
it directs me to
http://mywebsite.com/dashboard which is just a xampp webpage.
Why does this occur?
Without the full configution I can only guess but I suggest you to start changing
<VirtualHost VirtualHost 127.0.0.1:80>
People are also looking for solutions of the problem: composer detected issues in your platform: your composer dependencies require a php version ">= 7.3.0".
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.