Fórum

Configuring virtual host

thumbnail
alex wom, modificado 13 Anos atrás.

Configuring virtual host

Regular Member Postagens: 218 Data de Entrada: 04/05/09 Postagens Recentes
I would like to configure my portal with liferay 6.0.5.

I use the existing guest community. I configure in Portal->Settings Name, Mail Domain, Virtual Host to mydomain.com. In Virtual Host I had localhost but if I change Name and Mail Domain without change it I receive an error: please enter a valid virtual host.

But if I put mydomain.com in the field Virtual Host the back to mydomain.com link in the top of the Control Panel page doesn't work.

Please help me.
thumbnail
Wilson Man, modificado 13 Anos atrás.

RE: Configuring virtual host

Liferay Master Postagens: 581 Data de Entrada: 21/06/06 Postagens Recentes
what OS are you using?
if you're doing this on your personal desktop or laptop, have you added "mydomain.com" to your hosts file?

for example, i would need to add this to my hosts file:
127.0.0.1     mydomain.com


also, if you're running your tomcat on port 8080, you'll need to hit mydomain.com:8080
thumbnail
alex wom, modificado 13 Anos atrás.

RE: Configuring virtual host

Regular Member Postagens: 218 Data de Entrada: 04/05/09 Postagens Recentes
Liferay is really running on the server mydomain.com that is a Centos server. The port has been configured to 80. The wrong link is on the dockbar where the go back to mydomain.com refers to the URL http://mydomain.com/it/group/null...
thumbnail
William Fleming, modificado 13 Anos atrás.

RE: Configuring virtual host

Regular Member Postagens: 180 Data de Entrada: 15/09/10 Postagens Recentes
Enter mydomain.com into hosts file on server and then change virtual host in liferay.

If the server is remote then you will need to add mydomain.com to point to the correct IP in the hosts file, so you can access on your local machine.
thumbnail
Ravi Kumar Gupta, modificado 13 Anos atrás.

RE: Configuring virtual host

Liferay Legend Postagens: 1302 Data de Entrada: 24/06/09 Postagens Recentes
alex wom:
Liferay is really running on the server mydomain.com that is a Centos server. The port has been configured to 80. The wrong link is on the dockbar where the go back to mydomain.com refers to the URL http://mydomain.com/it/group/null...


Check these properties.. this should help
##
## Redirect
##

    #
    # 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


Thanks and Regards
Ravi Kumar Gupta
thumbnail
pedrobl pedrobl, modificado 12 Anos atrás.

RE: Configuring virtual host

Junior Member Postagens: 38 Data de Entrada: 11/07/05 Postagens Recentes
I've actually solved the issue by entering any other name than "localhost", e.g. "mylocalhost". I'm not using virtual hosts configuration at all (it's an installation for development on Weblogic), so that particular setting is not used.

HTH,

Pedro.