Apache virtual host always redirecting to /dashboard
Ok, I'm not sure why this was an issue but it seems to work when I change the virtual host's server name to anything other than ".local".
Thanks again to all who replied!
XAMPP Apache redirect my virtualhost to /dashboard
The solution is uncomment this module in the file httpd.conf:
# Virtual hosts
Include etc/extra/httpd-vhosts.conf
Virtual Host with Xampp redirecting to dashboard on windows
There is no real answer! As far as I could tell I just uninstalled and reinstalled and it worked fine. The funny part is I did the same steps in my home environment and it only works in firefox and not chrome. I may just be bad with apache but damn it feels a little unstable. I wish I could post an answer that would help other more.
configuring virtual host and localhost redirecting to the xampp folder
I had this same issue. Your first request is redirecting to the htdocs root directory. If you look at index.php in the htdocs directory, you can see very brief code that takes the incoming request and redirects it to the xampp directory.
I fixed it by fiddling with the httpd-vhosts.conf file. In your case, try making the following edits:
NameVirtualHost 127.0.0.1
<VirtualHost 127.0.0.1>
DocumentRoot "C:\xampp\htdocs\
ServerName localhost
</VirtualHost>
<VirtualHost www.myhost>
DocumentRoot "C:\Users\Me\Dropbox\Project\public"
ServerName www.myhost
ServerAlias www.myhost
<Directory "C:\Users\Me\Dropbox\Project\public">
Options Indexes FollowSymLinks Includes ExecCGI
AllowOverride All
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
XAMPP VirtualHost Redirects to htdocs
Changing below lines in the "directory" tags
Order allow,deny
Allow from all
in to this
Require all granted
fixes the issue.
Related Topics
How to Center the Text in Phpexcel Merged Cell
How to Throw an Error Message If Username Is Already Registered
Apache Virtual Host Always Redirecting to /Dashboard
How to Get Values of Checkbox Array in Laravel 5
How to Redirect to the Same Page in PHP
In Laravel,How to Use Foreach Loop
Remove Useless Zero Digits from Decimals in PHP
SQL Injection That Gets Around mysql_real_escape_string()
Change the Maximum Upload File Size
Deleting an Element from an Array in PHP
Install PHP Intl Extension on Macos
How to Get Newest Data With 'Created_At' Column
How to Store Values from Foreach Loop into an Array
Php Regex Find Text Between Custom Added HTML Tags
How to Not Make Phpmailer Send an Email With Multiple 'To' Addresses
Can You Assign Multiple Variables At Once in PHP Like You Can With Java