留言板
Virtual hosting not working
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
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
附件:
may i know what changes should i do? please
Change the virtual host from "localhost" to your domain name.
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.
'http://www.manjkouytho1.com:8080/test" is in the address bar but the page is not loading.
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:
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
I am not accessig liferay remotely. i am running it locally.!!!!!!!!
Please let me know where i am going wrong
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.
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.