we have configured Jira, Confluence, Jenkins on windows server (C:\Program Files\Atlasian) as follows.
10.64.240.245:8080 --> Jira
10.64.240.245:8090 --> Confluence
10.64.240.245:9090 --> Jenkins.
And we have installed Apache(24) on the same windows server (F:\Apache24)
ipcofnig in this windows server as follows.
IPv4 Address. . . . . . . . . . . : 10.64.240.245
Subnet Mask . . . . . . . . . . . : 255.255.255.0
IPv4 Address. . . . . . . . . . . : 10.64.240.246
Subnet Mask . . . . . . . . . . . : 255.255.252.0
IPv4 Address. . . . . . . . . . . : 10.64.240.247
Subnet Mask . . . . . . . . . . . : 255.255.252.0
Default Gateway . . . . . . . . . : 10.64.240.1
they have created aliases name as "adastrack.intra.com" to 10.64.240.245
>nslookup adastrack.intra.com
Name: ach.server.com
Addresss: 10.64.240.245
Aliases: adastrack.intra.com
Now, we want to access these 3 applications with 3 different IPs (or aliases names)
10.64.240.245/ --> Jira
10.64.240.246/ --> Confluence
10.64.240.247/ --> Jenkins
we have 2 more aliases for the same IP address (10.64.240.245)
adascollbataion.intra.com && adascimaster.com
How to setup this one ? Kindly suggest.
Hello NagendraKumar and welcome to the Community!
Reading through your post, I see what you’re trying to accomplish. There is a more natural method to achieve this.
First, having multiple network interfaces on windows will be problematic as your primary network address will be one of the 3 IPs you have listed. Windows patching will also cause issues as there are times the network interfaces are dropped or routes are changed due to a security patch. Which may cause routing issues as applications attempt to talk back out from an IP that is not theirs.
Here is how I would approach your configuration:
Your internal IP address for the server would remain the same.
10.64.240.245:8080 --> Jira → jira.intra.com
10.64.240.245:8090 --> Confluence → confluence.intra.com
10.64.240.245:9090 --> Jenkins → jenkins.intra.com
Using your router, you will set up your external DNS entries to point to different external IPs. From there, you will NAT those addresses back to their internal address with the proper ports assigned.
jira.intra.com → 10.10.10.2 → PORT 80 → 10.64.240.245:8080
confluence.intra.com → 10.10.10.3 → PORT 80 → 10.64.240.245:8090
jenkins.intra.com → 10.10.10.4 → PORT 80 → 10.64.240.245:9090
Using Apache, you can then create VirtualHosts which will translate the DNS names to the proper port. You may find more information at https://httpd.apache.org/docs/trunk/vhosts/examples.html#port. Here is an example of how this would be configured:
Listen 8080
Listen 8090
Listen 9090
<VirtualHost 172.20.30.40:8080>
ServerName jira.intra.com
DocumentRoot "/www/domain-8080"
</VirtualHost>
<VirtualHost 172.20.30.40:8090>
ServerName confluence.intra.com
DocumentRoot "/www/domain-8090"
</VirtualHost>
<VirtualHost 172.20.30.40:9090>
ServerName jenkins.intra.com
DocumentRoot "/www/domain-9090"
</VirtualHost>
The above would allow you to keep a single interface on your windows server and use your Firewall/Router and Apache to route and translate the domains as requested.
I hope this proves helpful and you’re able to get your tools accessible soon.
Regards,
Stephen Sifers
Hi Stephan Sifers,
Thansk a lot for your reply.
I agree with your suggestions, multiple network interfaces on windows will be problematic.
small correction to my question. I need to configure the setup to access with aliases names. (Not with IPs)
Below 3 are the aliases for 10.64.240.245 (forget about remaining IPs)
adastrack.intra.com, adascollbataion.intra.com, adascimaster.com
we need to accees the sites as follows
adastrack.intra.com --> Jira
adascollbataion.intra.com --> Confluence
adascimaster.com --> Jenkins.
I have amended the httpd.conf file as follows..
Listen 80
<VirtualHost *:80>
ProxyRequests Off
ProxyVia Off
<Proxy *>
Require all granted
</Proxy>
ProxyPass / http://adascollbataion.intra.com:8090/
ProxyPassReverse / http://adascollbataion.intra.com:8090/
ServerName adascollbataion.intra.com
</VirtualHost>
when i tried to access the page confluence page is loading as expected.
Again, here i have couple of issues.
1) When i try to access page, first apache home page is loading and when i refresh the same page then confluence is loading.
2) The page is loading in windows server but it is not working from outside servers (we rdp to this windows server)
Kindly let me know, what are the next steps i need to take to fix the issues.
Thanks,
Nag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Nag,
Thank you for the clarification on your configuration and requirements.
To address the sites loading locally but not external to the server. Ensure your DNS is resolving properly outside the server. Use the following to check (do this for each):
Nslookup adastrack.intra.com
#Your results should return something similar:
Server: localdomain.name.server
Address: 10.64.240.1
Non-authoritative answer:
Name: adastrack.intra.com
Addresses: 10.64.240.245
If the address is not correct then you have a DNS issue that needs to be resolved. Ensure your Windows Firewall is allowed traffic over your specified ports as well. If the firewall is blocking traffic, this may be why the pages don't load.
For your apache issues, your virtual host configuration should look similar to:
Listen 8080
Listen 8090
Listen 9090
<VirtualHost 10.64.240.245:8080>
ServerName adastrack.intra.com
DocumentRoot "/www/domain-8080"
</VirtualHost>
<VirtualHost 10.64.240.245:8090>
ServerName adascollbataion.intra.com
DocumentRoot "/www/domain-8090"
</VirtualHost>
<VirtualHost 10.64.240.245:9090>
ServerName adascimaster.com
DocumentRoot "/www/domain-9090"
</VirtualHost>
Regards,
Stephen Sifers
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephen,
I am into another issue now.
out of 3 consoles, I am able to get 2 (confluence and Jenkins). for the Jira, when I tried to access, it is loading to apache index page. Kindly suggest.
httpd.conf as follows..
Listen 80
<VirtualHost 10.64.240.245:80>
<Proxy *>
Require all granted
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://adastrack.intra.com:8080/
ProxyPassReverse / http://adastrack.intra.com:8080/
ServerName adastrack.intra.com
</VirtualHost>
<VirtualHost 10.64.240.245:80>
<Proxy *>
Require all granted
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://adascollaboration.intra.com:8090/
ProxyPassReverse / http://adascollaboration.intra.com:8090/
ServerName adascollaboration.intra.com
</VirtualHost>
<VirtualHost 10.64.240.245:80>
<Proxy *>
Require all granted
</Proxy>
ProxyRequests Off
ProxyPreserveHost On
ProxyPass / http://adascimaster.com:9090/
ProxyPassReverse / http://adascimaster.com:9090/
ServerName adascimaster.com
</VirtualHost>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks again Stephen,
This helped me a lot, I have configured the httpd.conf to serve the 3 applications on 3 different aliases and its working as expected.
And for external issue, windows servers is not allowing the traffic via port 80 and 443. I have requested network team look on it.
Thanks,
Nag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.