<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'><table><tbody><tr><td class="votecell"><div class="vote">
<span itemprop="upvoteCount" class="vote-count-post "></span><br>
</div>
</td>
<td class="postcell">
<div>
<div class="post-text" itemprop="text">
I have OpenShift v3 installed on an Amazon EC2 instance. It's not a
problem when you don't know OpenShift to answer this question. OpenShift
contains a router and routes which makes it possible to access services
by their hostname (for example www.example.com).<BR>
In my initial configuration I was working like this:<BR>
<ul><li>I linked a service and a hostname.</li><li>On my own PC (not the server), I edited <code>/etc/hosts</code> and added the following:<BR>
<pre><code>52.18.247.x myapp.apps.example.com
</code></pre></li></ul>
52.18.247.x is my public IP of the amazon instance. This was working.
So I could acces myapp.apps.example in my browser. But I knew this was
not the best way to do it. So I wanted to set up a Wildcard for
resolving this issue. I cleared my <code>/etc/hosts</code> on my real pc and went into my amazon instance:<BR><br><BR><code>yum install dnsmasq
</code>
dnsmasq is running on port 53.<BR>
<pre><code>vi /etc/dnsmasq.conf
</code></pre>
add:<BR>
<pre><code>address=/apps.example.com/52.18.247.x
</code></pre>
Than I did a restart:<BR>
<pre><code>sudo service dnsmasq restart
</code></pre>
But it is not working and I cannot visit my services (apps) in my browser. What am I doing wrong?<BR>
</div></div></td></tr></tbody></table> </div></body>
</html>