Author |
|
jendislav
Joined: 20 May 2013 Posts: 4 Location: Czech
|
Posted: Mon 20 May '13 11:15 Post subject: How to access LAN app from WAN |
|
|
Hi,
I am apache beginner so I am sorry for my questions.
Now let me describe my issue.
I am running Win Server 2003 32 bit with Apache 2.2.8, PHP 5.2.9-2 and MySQL server 5.1.
My customer needs to use some specific app which is running under the apache.
Well, app is running well from LAN and from WAN as well. Issue is that from LAN user needs to access it via http://servername/index.html and from WAN http://www.companyweb.com and notes and other link are not working when user gets email from LAN and tries to access it from WAN.
I tried to set up LAN access via WAN address but it is not working. There is no DHCP on the server, there is AD only. It looks like DNS issue but I am not sure so is there any way how to solve it in apache setting?
Thanks for answer.
regards,
Jan |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 21 May '13 12:10 Post subject: |
|
|
Since you run AD, you must have an DNS server running. There you may override www.companyweb.com with the internal IP from the server. You only have to make sure that the clients in the network use the AD's DNS server. |
|
Back to top |
|
jendislav
Joined: 20 May 2013 Posts: 4 Location: Czech
|
Posted: Tue 21 May '13 14:04 Post subject: |
|
|
James Blond wrote: | Since you run AD, you must have an DNS server running. There you may override www.companyweb.com with the internal IP from the server. You only have to make sure that the clients in the network use the AD's DNS server. |
Hi James,
thanks for answer.
Do you mean and a record into DNS forward lookup zone? Like www.neededwebsite.xxx with internal IP for example 192.168.1.1?
Thanks,
Jan |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 21 May '13 14:24 Post subject: |
|
|
Yepp, an A record in the forward zone. |
|
Back to top |
|
jendislav
Joined: 20 May 2013 Posts: 4 Location: Czech
|
Posted: Tue 21 May '13 14:52 Post subject: |
|
|
It will not work I think... I should add new forward lookup zone because my local domain is something.local and website is www.something-crm.xx.
I tried to add new forward zone - something-xxx.xx and then add a record www with needed IP but it doesnt work as well. When I am trying ot use internal IP it works but it doesnt when I am using website name.
J. |
|
Back to top |
|
James Blond Moderator
Joined: 19 Jan 2006 Posts: 7373 Location: Germany, Next to Hamburg
|
Posted: Tue 21 May '13 22:24 Post subject: |
|
|
If the website you need access to is wibble.example.com, then do the following:
1) Create a forward lookup zone for example.com
2) Create an A record for wibble with the internal IP address |
|
Back to top |
|
jendislav
Joined: 20 May 2013 Posts: 4 Location: Czech
|
Posted: Wed 22 May '13 9:19 Post subject: :) |
|
|
Hi James,
thanks for answer.
I did that before you reply and it works now.
Thanks for help.
regards,
Jan |
|
Back to top |
|
Sarah Keys
Joined: 02 Jan 2014 Posts: 5 Location: United States
|
|
Back to top |
|
jraute
Joined: 13 Sep 2013 Posts: 188 Location: Rheinland, Germany
|
Posted: Fri 10 Oct '14 7:37 Post subject: |
|
|
Hi Sarah,
that should be a master-zone on that dns-server, where you want to host the entries. slave-zones are used for given zones, used for reducing the load of the master-server and for increasing the reliability. |
|
Back to top |
|