Safari cannot open Tomcat localhost

I have the following URL http://www.example.localhost:8080/which works fine in Chrome, however Safari says that it cannot find the server. How to open the URL in Safari, I tried to change localhost with the help 127.0.0.1, 0.0.0.0but it does not work.

I am running Tomcat 8 from IntelliJ.

+4
source share
2 answers

This is not intended to work. Chrome allows * .localhost for the local host inside. Either edit your / etc / hosts to point www.example.localhost to 127.0.0.1, or remove "www.example" from your configuration in IntelliJ.

+1
source

: .

-: , httpd: ps -eaf | grep httpd : sudo httpd -k restart

-: , . chmod 755

php, , . php Mac OS X

0

Source: https://habr.com/ru/post/1653457/


All Articles