SAM
SAM

Reputation: 11

Issue in configuring virtual host in tomcat 7

I am facing issues in configuring virtual hosts in tomcat 7.

Till now, I have done the following:

Am I missing something here? Because, after doing all the above, I am unable to connect using the host name. But if I type in the IP address of the server, it works fine.

I cannot say whether there is any permissions related issue or not.

Please help me in resolving this issue.

Upvotes: 1

Views: 3693

Answers (1)

Sam
Sam

Reputation: 121

It must be a matter of name resolution. You must be able to resolve the www.myhostname.com.

You can add a name record if it is only to develop on your computer:

On Windows:

C:\Windows\System32\drivers\etc\hosts

On Linux:

/etc/hosts

You can check the resolution with nslookup or dig.

Otherwise, set up your DNS to resolve www.myhostname.com to your Tomcat bind address.

Upvotes: 1

Related Questions