Unable to access Apache Server from Outside the LAN

We are running Apache 2.2 on Windows Server 2008 R2.
We have developed a php/sql application and it runs just fine when accessed from within the lan (i.e: http://myapp.domain.local)

We are however struggling to make the application accessible from outside the our lan using http://myapp.domain.int

We have allowed port 80 in the Windows and ASA firewall. We have also setup a nat rule. The resource is published to dns. However the application is still not accessible.

We are stumped and no one is really an Apache expert onsite.

The application is stored at C:\Server\www\savsvr000020a.sacu.local\public_html

I am also attaching out httpd confing file for assistance and guidance.

Please help
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Peter HartCommented:
you say you have set up a firewall to allow http through - is that part of the Router? (i.e the box that interfaces to your internet)

  my firewall and router are in the same box so I figure a port forwarding rule to allow port 80 (or whatever post my application uses)  to route  to a particular ip address on my local LAN from the outside world.
Peter HartCommented:
also I found if you are testing it by trying to  go out from your LAN and back in to your LAN it won't work - (some kind of loopback protect) try it from a system truely outside your LAN,
SACUADMINAuthor Commented:
Hi ChiternPC,

The router is not part of the firewall. We are however publishing other websites through it using NAT with no problems. The ISP does not block anything, just gives us a public IP with all ports open.

I am testing strictly from outside our LAN to avoid any loopback issues.

I just feel i am missing something with Apache.
IT Pros Agree: AI and Machine Learning Key

We’d all like to think our company’s data is well protected, but when you ask IT professionals they admit the data probably is not as safe as it could be.

From an outside source, can you telnet to port 80 on the external IP address?  Does your apache server have a default gateway set as your firewall?
Ernie BeekExpertCommented:
Is the app using any other ports?
SACUADMINAuthor Commented:
Default gateway is set to firewall ip.

Interestingly I cannot telnet to port 80 on the external IP.
So it must be a firewall issue? (ASA 5505)
Ernie BeekExpertCommented:
Could you show a (sanitized) config of the ASA?
SACUADMINAuthor Commented:
banner motd **** Unauthorized Use or Access Prohibited ****
ftp mode passive
clock timezone WAST 1
clock summer-time WADT recurring 1 Sun Sep 2:00 1 Sun Apr 2:00
dns domain-lookup outside
dns server-group DefaultDNS
 domain-name sacu.local
object-group protocol TCPUDP
 protocol-object udp
 protocol-object tcp
access-list outside_in extended permit icmp any any time-exceeded
access-list outside_in extended permit icmp any any echo-reply

"....sanitized stuff....."

access-list outside_in extended permit tcp any host eq www
access-list inside_nat0_outbound extended permit ip
access-list LOCAL-LAN-VPN standard permit

".....sanitized stuff..."

global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1
static (inside,outside) netmask

"...............santized stuff............."

access-group outside_in in interface outside
route outside 1

the server with problems is the ""
Ernie BeekExpertCommented:
Well that should be ok.
You said it was a php/sql app. Are you sure it's only using port 80?

One other thing I found. In the httpd there is a line: ServerName localhost I think that should be: myapp.domain.int localhost:80 as stated on: http://www.ehow.com/how_6049004_do-connections-access-apache-server_.html
SACUADMINAuthor Commented:
Thanks Erniebeek,

When I add "myapp.domain.int localhost:80" to the httpd file the Apache fails to start.

I earlier opened the ASA firewall for all tcp,upd,ip connections. Even turned off the Windows firewall. No joy... So I don't think it is strictly a port issue
Perhaps adjusting this in apache config:

ServerName localhost

set to

SACUADMINAuthor Commented:
No joy either way unsatiated. The Apache server starts but is still only accessible from within the LAN
SACUADMINAuthor Commented:
When i run a port scanner from within the LAN, port 80 is open on the server.
When I try from outside the lan using yougetsignal.com it is closed. Aaggghhhh.... I need some coffee
SACUADMINAuthor Commented:
I resolved it finally.
(a) Added a second ip to the server, with no internal dns but with firewall ip as gateway.
(b) NAT'd the new IP
(c) Changed httpd back to "Listen 80" and "ServerName localhost:80"

All is working just fine website acessible from outside LAN and inside the LAN.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Ernie BeekExpertCommented:
Glad you figured it out, good job :)
SACUADMINAuthor Commented:
It is likely that Apache and some other service were clashing at Port 80 therefore a new IP resolved the problem.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft Server OS

From novice to tech pro — start learning today.