留言板

Virtual hosting not working

thumbnail
Madhura Shetty,修改在9 年前。

Virtual hosting not working

Junior Member 帖子: 80 加入日期: 13-11-7 最近的帖子
Firts "http://localhost:8080/web/12661/test" was loading fine i wanted to change the address to "www.manjkouytho.com/test" so i followed the below steps.

Step1. I added the the below lines in "C:\Windows\System32\drivers\etc\hosts" file
127.0.0.1 www.manjkouytho.com
127.0.0.1 www.manjkouytho1.com

step 2. I restarted the server.

step3 .I changed the address under public pages as I have mentioned in the attachment.

step 4 . I tried to access the site, the address bar shows "http://www.manjkouytho1.com:8080/test" but he page is not loading.

Please correct me
thumbnail
Mohammed Azam,修改在9 年前。

RE: Virtual hosting not working

Regular Member 帖子: 159 加入日期: 09-11-6 最近的帖子
You need to also change the site settings I believe.
thumbnail
Madhura Shetty,修改在9 年前。

RE: Virtual hosting not working

Junior Member 帖子: 80 加入日期: 13-11-7 最近的帖子
may i know what changes should i do? please
thumbnail
Mohammed Azam,修改在9 年前。

RE: Virtual hosting not working

Regular Member 帖子: 159 加入日期: 09-11-6 最近的帖子
Change the virtual host from "localhost" to your domain name.
thumbnail
Madhura Shetty,修改在9 年前。

RE: Virtual hosting not working

Junior Member 帖子: 80 加入日期: 13-11-7 最近的帖子
I changed from localhost to manjkouytho1.com still not working


'http://www.manjkouytho1.com:8080/test" is in the address bar but the page is not loading.
thumbnail
Juan Gonzalez,修改在9 年前。

RE: Virtual hosting not working

Liferay Legend 帖子: 3089 加入日期: 08-10-28 最近的帖子
Hi Madhura,

are you accessing from a different host where Liferay is installed?

In that case, read the comments on these properties and set their values accordingly:

#
    # Set this property to "ip" or "domain" for the redirect security method. If
    # set to "domain", the portal will only redirect users to domains listed in
    # the property "redirect.url.domain.allowed". If set to "ip", the portal
    # will only redirect to domains whose IP address resolve to an IP address
    # listed in the property "redirect.url.ip.allowed".
    #
    #redirect.url.security.mode=domain
    redirect.url.security.mode=ip

    #
    # Input a list of comma delimited domains which the portal is allowed to
    # redirect to. Input a blank list to allow any domain.
    #
    redirect.url.domains.allowed=

    #
    # Input a list of comma delimited IPs which the portal is allowed to
    # redirect to. Input a blank list to allow any IP. SERVER_IP will be
    # replaced with the IP of the host server.
    #
    redirect.url.ips.allowed=127.0.0.1,SERVER_IP
thumbnail
Madhura Shetty,修改在9 年前。

RE: Virtual hosting not working

Junior Member 帖子: 80 加入日期: 13-11-7 最近的帖子
I am not accessig liferay remotely. i am running it locally.!!!!!!!!emoticon emoticon emoticon
thumbnail
Madhura Shetty,修改在9 年前。

RE: Virtual hosting not working

Junior Member 帖子: 80 加入日期: 13-11-7 最近的帖子
Please let me know where i am going wrong emoticon emoticon emoticon emoticon
thumbnail
Olaf Kock,修改在9 年前。

RE: Virtual hosting not working

Liferay Legend 帖子: 6403 加入日期: 08-9-23 最近的帖子
You can't just make up domain names in Liferay. Your browser will need to know how to resolve the name to an IP address, even if it's just a local installation. The name "localhost" resolves to the current computer, so it's always working from the same computer, but, for example, not for your colleague's computer: They'd access their own machine with the name "localhost", not yours.

In order to be able to connect to www.manjkouytho1.com you'll need to make this address known to your local computer, e.g. through adding it to a hosts file (unix systems: /etc/hosts, Windows: Somewhere in c:/Windows......./Drivers/etc/hosts).

It looks like the domain is not registered. If you did, you could have your registrar set the DNS resolution to a correct IP address. That would be beyond the scope of this answer though.

Open your command line and type "ping www.manjkouytho1.com" (no quotes, followed by enter). As long as this gives an error message about Unknown host or similar, your browser won't be able to connect either. And it's not a Liferay problem.