My http://localhost/ redirecting to www.localhost.com

后端 未结 9 1055
离开以前
离开以前 2021-01-08 00:13

I checked my httpd.conf file and nothing found anything, let me know other areas whr i need to look.

Although my other links are working fine like --

9条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-08 01:08

    I know this is a quite old question but just for the same problem, which appeared suddenly. This was due to an issue in the PHP code, and nothing due to Apache configuration.

    I checked the file /var/log/apache2/error.log (Under Linux, I do not know the path for Windows/Mac), which gave me an indication:

    [Sat Jun 20 21:49:06.444684 2015] [:error] [pid 24149] [client 127.0.0.1:59150] PHP Fatal error: Can't use method return value in write context in /docs/Cedric/Programmation/PHP/slnslv/src/SLN/RegisterBundle/Controller/MemberController.php on line 80, referer: http://localhost/slnslv/web/

    [Sat Jun 20 21:49:06.674815 2015] [core:notice] [pid 1904] AH00052: child pid 1973 exit signal Segmentation fault (11)

    [Sat Jun 20 21:49:06.674885 2015] [core:notice] [pid 1904] AH00052: child pid 24149 exit signal Segmentation fault (11)

    Fixing the error in PHP with this indication magically solved the problem.

    No idea however how a simple PHP error can cause a segmentation fault, which can make the browser (Firefox) thing it should guess a correct domain name.

提交回复
热议问题