RE: RE: Error setup Virtual Host - Liferay 7.2

Kevin Matthews, modified 4 Years ago. Expert Posts: 253 Join Date: 1/25/16 Recent Posts

Hello, I would like to setup my virtual host. When i go to site, configuration and settings. I enter my public and private uRL but wheni save I got the following error:

Error: Please enter a unique virtual host. Virtual hosts must be valid domain names.

 

Has anyone recieved this error?

 

Thanks

Kevin

thumbnail
Olaf Kock, modified 4 Years ago. Liferay Legend Posts: 6441 Join Date: 9/23/08 Recent Posts

Let's start with the obvious:

Do you enter unique host names? They identify which site is addressed by which host, so a virtual host name can only be used once.

Do you enter host names that qualify as valid host names? E.g. typically in DNS notation.

Kevin Matthews, modified 4 Years ago. Expert Posts: 253 Join Date: 1/25/16 Recent Posts

Hi Olaf,

I think do. How do you know if the host name or names are unique? 

My hostname is constructed as followis dev-xxx-xxx-1xx.com. The first 3 characters deterimine the environment (development/QA/stage/prod), the second three characters determine location, the next determine name of the application, following the domain.

 

Kevin

 

 

Kevin Matthews, modified 4 Years ago. Expert Posts: 253 Join Date: 1/25/16 Recent Posts

Hi Olaf,

How to determine if my hostnames are unique? Should i check if there somewhere in the portal configuration it has the same name? 

My host name is configure of 4 parts as follows: dev-xxx-xxx-xxx.1xx.com . the first part is 3 letters of the environment (dev/qa/test/prod), the second par is location (city), the thrid part is name of the application ad the fourth part is domain group.

Thanks

Kevin

thumbnail
Sergio Sanchez, modified 4 Years ago. Regular Member Posts: 149 Join Date: 7/6/11 Recent Posts

Hi Kevin, you can query your database and check the values in the VirtuaHost table.

Kevin Matthews, modified 4 Years ago. Expert Posts: 253 Join Date: 1/25/16 Recent Posts

Hi Sergio, I do have the virtual hostname in the VirtualHosta table

Mc Version, Host iD companyId LayoutSetId hostname

'1', '20105', '20102', '0', 'dev-xx-xx.xx.com'

 

But still have the same issue. 

 

I would guess it got populated from somewher

 

What your thoughts?