Discussion:
apache config: localhost automatically jumps to localhost/interface
(too old to reply)
Hongliang Wang
2016-03-07 07:02:39 UTC
Permalink
Dear all, I configured xampp and it was running very good. For instance, when I type localhost in my browser it will reach localhost/index.php. Today, however, I was trying to install a web app and failed. But now when I type localhost in my browser it automatically jumps to localhost/interface which does not exist at all. I only want to reach localhost/index.php.

Could anybody help me to restore my Apache settings please?
Kees Nuyt
2016-03-07 15:53:01 UTC
Permalink
On Sun, 6 Mar 2016 23:02:39 -0800 (PST), Hongliang Wang
Post by Hongliang Wang
Dear all, I configured xampp and it was running very good.
For instance, when I type localhost in my browser it will
reach localhost/index.php. Today, however, I was trying
to install a web app and failed. But now when I type
localhost in my browser it automatically jumps to
localhost/interface which does not exist at all.
I only want to reach localhost/index.php.
Could anybody help me to restore my Apache settings please?
We have no way of knowing what you installed and what that did
to your xampp configuration, so we cannot tell you which line to
change in which file.

Your options in order of preference are:

1) Roll back your source management system
to the initial checkin of the xampp config files

2) Restore the config files from a backup

3) Uninstall xampp completely, start all over again

4) Reinstall xampp in a different base directory
and copy the config files you have changed
from the new install to the damaged install

Hope this helps.
--
Regards,
Kees Nuyt
Thomas Mlynarczyk
2016-03-08 12:24:45 UTC
Permalink
Post by Hongliang Wang
Today, however, I was trying to install a web app and failed.
But now when I type localhost in my browser it automatically jumps
to localhost/interface which does not exist at all.
Did this web app put an .htaccess file in your webroot folder? If so,
does it contain any rewrite directives which might explain the observed
behaviour?

If not, you should check your apache config files -- search for the word
"interface".

Greetings,
Thomas
--
Ce n'est pas parce qu'ils sont nombreux à avoir tort qu'ils ont raison!
(Coluche)
i***@gmail.com
2016-06-24 14:26:15 UTC
Permalink
Post by Hongliang Wang
Dear all, I configured xampp and it was running very good. For instance, when I type localhost in my browser it will reach localhost/index.php. Today, however, I was trying to install a web app and failed. But now when I type localhost in my browser it automatically jumps to localhost/interface which does not exist at all. I only want to reach localhost/index.php.
Could anybody help me to restore my Apache settings please?
I can suggest you to check for an .htaccess file in your root directory
You can find a redirect from /index.php to the /interfaces there
Check your index.php file for redirect too: just look for 'interfaces' word there.
Maybe it's a good idea to check you apache config files too.

Overall I can't suggest why it happens.
There are much of the reasons possible.

If you didn't know how to look for apache config and check them take a look here: https://serversuit.com/community/technical-tips/view/lamp-package-setup.html
Loading...