Xampp keeps redirections to dashboard - xampp 5.6.12-0

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby giwrgos » 01. October 2015 12:41

Hello, I have upgraded the xampp to 5.6.12-0, and my macbook to OSX 10.11 El Capitan. I'm trying to access my projects from htdocs using the virtualhost that I have set inside the hosts files but it keeps redirects me to dashboard page whatever domain I'm using. Does anyone else have the same issue?

I have checked if the virtualhost is uncomment inside the httpd.conf and also if the directory is fine.
giwrgos
 
Posts: 7
Joined: 01. October 2015 12:35
Operating System: OSX 10.11

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby Altrea » 01. October 2015 15:22

Hi,

If you are trying to debug your virtual host configuration, you may find the Apache -S command line switch useful. That is, type the following command:

Code: Select all
/usr/local/apache2/bin/httpd -S

This command will dump out a description of how Apache parsed the configuration file. Careful examination of the IP addresses and server names may help uncover configuration mistakes. (See the docs for the httpd program for other command line options)


Source: http://httpd.apache.org/docs/2.4/en/vhosts/

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby giwrgos » 01. October 2015 18:09

Altrea wrote:Hi,

If you are trying to debug your virtual host configuration, you may find the Apache -S command line switch useful. That is, type the following command:

Code: Select all
/usr/local/apache2/bin/httpd -S

This command will dump out a description of how Apache parsed the configuration file. Careful examination of the IP addresses and server names may help uncover configuration mistakes. (See the docs for the httpd program for other command line options)


Source: http://httpd.apache.org/docs/2.4/en/vhosts/

best wishes,
Altrea


I have the following

VirtualHost configuration:
*:80 localhost (/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf:41)
ServerRoot: "/Applications/XAMPP/xamppfiles"
Main DocumentRoot: "/Applications/XAMPP/xamppfiles/htdocs"
Main ErrorLog: "/Applications/XAMPP/xamppfiles/logs/error_log"
Mutex ssl-stapling: using_defaults
Mutex ldap-cache: using_defaults
Mutex proxy: using_defaults
Mutex ssl-cache: using_defaults
Mutex authn-socache: using_defaults
Mutex default: dir="/Applications/XAMPP/xamppfiles/logs/" mechanism=default
Mutex mpm-accept: using_defaults
Mutex authdigest-opaque: using_defaults
Mutex proxy-balancer-shm: using_defaults
Mutex ssl-stapling-refresh: using_defaults
Mutex rewrite-map: using_defaults
Mutex authdigest-client: using_defaults
PidFile: "/Applications/XAMPP/xamppfiles/logs/httpd.pid"
Define: DUMP_VHOSTS
Define: DUMP_RUN_CFG
Define: MODPERL2
User: name="daemon" id=1 not_used
Group: name="daemon" id=1 not_used
giwrgos
 
Posts: 7
Joined: 01. October 2015 12:35
Operating System: OSX 10.11

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby Altrea » 01. October 2015 18:49

*:80 localhost (/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf:41)

So, your Apache knows exactly one virtualhost with the Servername localhost defined in your httpd-vhosts.conf beginning with line 41.
Is this your project vhost?
if yes, Did you define a DocumentRoot in there?
If yes, is this DocumentRoot correct?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby giwrgos » 02. October 2015 10:10

Altrea wrote:
*:80 localhost (/Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf:41)

So, your Apache knows exactly one virtualhost with the Servername localhost defined in your httpd-vhosts.conf beginning with line 41.
Is this your project vhost?
if yes, Did you define a DocumentRoot in there?
If yes, is this DocumentRoot correct?



Yes I have defined a Document Root. The project folder is called project and exist inside the /Applications/XAMPP/xamppfiles/htdocs/project but it still redirects to dashboard
giwrgos
 
Posts: 7
Joined: 01. October 2015 12:35
Operating System: OSX 10.11

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby Altrea » 02. October 2015 12:13

Please Show us your full /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf file
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby giwrgos » 02. October 2015 12:31

Altrea wrote:Please Show us your full /Applications/XAMPP/xamppfiles/etc/extra/httpd-vhosts.conf file



# Virtual Hosts
#
# Required modules: mod_log_config

# If you want to maintain multiple domains/hostnames on your
# machine you can setup VirtualHost containers for them. Most configurations
# use only name-based virtual hosts so the server doesn't need to worry about
# IP addresses. This is indicated by the asterisks in the directives below.
#
# Please see the documentation at
# <URL:http://httpd.apache.org/docs/2.4/vhosts/>
# for further details before you try to setup virtual hosts.
#
# You may use the command line option '-S' to verify your virtual host
# configuration.

#
# VirtualHost example:
# Almost any Apache directive may go into a VirtualHost container.
# The first VirtualHost section is used for all requests that do not
# match a ServerName or ServerAlias in any <VirtualHost> block.
#
#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host.example.com
# DocumentRoot "/Applications/XAMPP/xamppfiles/docs/dummy-host.example.com"
# ServerName dummy-host.example.com
# ServerAlias www.dummy-host.example.com
# ErrorLog "logs/dummy-host.example.com-error_log"
# CustomLog "logs/dummy-host.example.com-access_log" common
#</VirtualHost>

#<VirtualHost *:80>
# ServerAdmin webmaster@dummy-host2.example.com
# DocumentRoot "/Applications/XAMPP/xamppfiles/docs/dummy-host2.example.com"
# ServerName dummy-host2.example.com
# ErrorLog "logs/dummy-host2.example.com-error_log"
# CustomLog "logs/dummy-host2.example.com-access_log" common
#</VirtualHost>

# localhost
<VirtualHost *:80>
ServerName localhost
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs"
<Directory "/Applications/XAMPP/xamppfiles/htdocs">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>

#My Virtual Hosts
<VirtualHost *:80>
ServerName project.com
DocumentRoot "/Applications/XAMPP/xamppfiles/htdocs/project"
<Directory "/Applications/XAMPP/xamppfiles/htdocs/project">
Options Indexes FollowSymLinks Includes execCGI
AllowOverride All
Require all granted
</Directory>
</VirtualHost>


and the host file i have 127.0.0.1 project.com www.project.com
giwrgos
 
Posts: 7
Joined: 01. October 2015 12:35
Operating System: OSX 10.11

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby Altrea » 02. October 2015 13:10

This is what i have expected.
You have defined 2 virtual hosts but Apache only knows the first one.
Did you restart Apache after defining the second virtual host?
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby giwrgos » 02. October 2015 13:11

Altrea wrote:This is what i have expected.
You have defined 2 virtual hosts but Apache only knows the first one.
Did you restart Apache after defining the second virtual host?

yes, i also restarted the computer
giwrgos
 
Posts: 7
Joined: 01. October 2015 12:35
Operating System: OSX 10.11

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby Altrea » 02. October 2015 13:14

Then i have no clue what is going on.
Maybe you should restart Apache again.
Maybe you changed the wrong file.
I don't know, sorry.
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11926
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 10 Pro x64

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby Nobbie » 03. October 2015 15:17

giwrgos wrote:it keeps redirects me to dashboard page whatever domain I'm using


Please be more precisely, which domains did you try?
Nobbie
 
Posts: 13165
Joined: 09. March 2008 13:04

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby giwrgos » 06. October 2015 13:08

Nobbie wrote:
giwrgos wrote:it keeps redirects me to dashboard page whatever domain I'm using


Please be more precisely, which domains did you try?

This one project.com and on my host file i have the following 127.0.0.1 project.com www.project.com
giwrgos
 
Posts: 7
Joined: 01. October 2015 12:35
Operating System: OSX 10.11

Re: Xampp keeps redirections to dashboard - xampp 5.6.12-0

Postby giwrgos » 07. October 2015 07:25

ok the issue was in the host file. because I had this 127.0.0.1 project.com www.project.com the xampp was redirecting me to the dashboard. after removing the www.project.com from the host file and using project.com as the url on chrome it worked.
giwrgos
 
Posts: 7
Joined: 01. October 2015 12:35
Operating System: OSX 10.11


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 48 guests