apache behind router
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Apache Server configuration support > apache behind router




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    apache behind router  
julian_m


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 04:24 PM

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






[ Post a follow-up to this message ]



    Re: apache behind router  
Robert Ionescu


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 04:24 PM

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





[ Post a follow-up to this message ]



    Re: apache behind router  
julian_m


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 04:24 PM


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






[ Post a follow-up to this message ]



    Re: apache behind router  
Davide Bianchi


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
02-26-06 10: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.





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 01:09 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register