Apache Virtual Host Always Redirecting to /Dashboard

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



Leave a reply



Submit