Apache Server configuration support - apache behind router

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > February 2006 > apache behind router





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author apache behind router
julian_m

2006-02-26, 11:24 am

First of all, excuseme if this is off topic here, but i didn't know
where to post it.

I'm having problems to set up an Apache Web Server inside a LAN. I've a
dynamic IP connection which is used by a CNet cnig-914 router. The
computer where Apache is installed on, has 192.168.1.4 IP. The problem,
as you might guess, is that the webserver can=B4t be reached from
outside the LAN.
All works fine if i write in the address bar
http://192.168.1.4/index.htm, but it doesn=B4t work if i try to access
it through http://[ROUTER-IP]/index.php

Given that the router (CNet cnig-914) isn=B4t as common as Linksys seems
to be, i'm gonna show what kind of menus it has:

NAT --> Virtual Server --> Server IP
NAT --> Virtual Server --> Mapping Ports

(I tried with 192.168.1.4 and port 80 / 8080, and nothing )

Firewall --> DMZ --> IP Address of Local DMZ Host --> IP Address
Firewall --> DMZ --> IP Address of Public DMZ Host --> IP Address

(I tried with 192.168.1.4, without luck )

Note that i'm using a no-ip account and before installing the router,
it was working fine.

A little bit of my Apache config file

Listen 8080 #(Not worked with port 80)

<VirtualHost *:80>
DocumentRoot "C:/Apache2/htdocs/julianmslp_zapto_org"
ServerName julianmslp.zapto.org
<Directory "C:/Apache2/htdocs/julianmslp_zapto_org">
#Options Indexes FollowSymLinks MultiViews
Order allow,deny
Allow from all
</Directory>
</VirtualHost>

Any help would be apreciated

regards - jm

Robert Ionescu

2006-02-26, 11:24 am

julian_m wrote:
> All works fine if i write in the address bar
> http://192.168.1.4/index.htm, but it doesn´t work if i try to access
> it through http://[ROUTER-IP]/index.php


But you did request http://[ROUTER-IP]/index.php from outside of your
LAN? May be use a web service such as http://web-sniffer.net

> Listen 8080 #(Not worked with port 80)
>
> <VirtualHost *:80>


If you're listening on port 8080 (the request was routed from port 80 to
port 8080?) and have a NameVirtualhost *:80 in place, your vhost should
not match due to port mismatch.

--
Robert
julian_m

2006-02-26, 11:24 am


Robert Ionescu wrote:
> julian_m wrote:
>
> But you did request http://[ROUTER-IP]/index.php from outside of your
> LAN? May be use a web service such as http://web-sniffer.net


Connect to [my_actual_dynamic_IP] on port 80 ... failed
Error 110: Connection timed out

but, once again, I can reach apache inside the LAN :
http://192.168.1.4/index.htm is ok

[vbcol=seagreen]
>

Forget it, i was confused. Apache is listening port 80 already


regards - jm

Davide Bianchi

2006-02-26, 5:52 pm

On 2006-02-26, julian_m <julianmaisano@gmail.com> wrote:
> Connect to [my_actual_dynamic_IP] on port 80 ... failed


Yes, but this is from the OUTSIDE (from another machine connected
to the interne) or from the INSIDE of your network? If it's from the
outside it is possible that you have a firewall that doesn't allow
connection from another network or that your ISP doesn't allow connection
on your port 80, in this second case check your T&C, if you aren't allowed
to run your own web service you'll have to ask your ISP, change the
contract or change the ISP.

Davide

--
Microsoft is not the answer. Microsoft is the question. Linux is the answer.
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com