Foros de discusión

Virtual Hosting peoblem

gagan singh, modificado hace 9 años.

Virtual Hosting peoblem

New Member Mensajes: 2 Fecha de incorporación: 5/12/14 Mensajes recientes
Hi ,
I am new at using liferay . I am using liferay portal 5.2.2 at localhost with tomcat . When i type my ip like http://localhost:8086/ the webpage opens and i am able to login . Same is the case if use my ip address instead but whenever i use a domain name like http://whythisnowork.com , then it says "Unknown host" error .
I made changes to host file as 127.0.0.1 whythisnowork.com and went to control panel ->portal-> settings and made changes to virtual hosting under main configuration but it's not working .
Please suggest a solution .
thumbnail
David H Nebinger, modificado hace 9 años.

RE: Virtual Hosting peoblem

Liferay Legend Mensajes: 14918 Fecha de incorporación: 2/09/06 Mensajes recientes
If you type "ping whythisnowork.com" on the command line, does it try to send pings to 127.0.0.1?

You're actually going to be looking for two issues. First, make sure whythisnowork.com actually does resolve to 127.0.0.1. The second issue, if http://localhost:8086/ works, then the url to try is going to be http://whythisnowork.com:8086/ (you're only changing the host name, not the port).

This has nothing to do with virtual hosts at all, really.
gagan singh, modificado hace 9 años.

RE: Virtual Hosting peoblem

New Member Mensajes: 2 Fecha de incorporación: 5/12/14 Mensajes recientes
Hi David , i tried that and it did not work .
The exact command i typed in cmd was
ping whythisnowork.com
I got this as a result
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128
Reply from 127.0.0.1: bytes=32 time<1ms TTL=128

After that although i have tried that before , i tried "http://whythisnowork.com:8086/" again and got
"unable to locate server name whythisnowork.com" .
mark grant, modificado hace 9 años.

RE: Virtual Hosting peoblem

New Member Mensajes: 11 Fecha de incorporación: 10/01/15 Mensajes recientes
hi just wondering if you tried simply adding a / instead of the address?
www.sunlife.co.uk