a5d0 [Solved] A very simple Apache22 problem - The FreeBSD Forums
The FreeBSD Forums  

Go Back   The FreeBSD Forums > Server & Networking > Web & Network Services

Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc.

Reply
 
Thread Tools Display Modes
  #1  
Old July 8th, 2012, 10:17
niellusNL niellusNL is offline
Junior Member
 
Join Date: Jan 2012
Posts: 21
Thanks: 8
Thanked 0 Times in 0 Posts
Default A very simple Apache22 problem

Hi All,

I am encountering a very simple (by the looks of it) problem with Apache22.

To become familiarized with the configuration of the server I started off with a normal ports install, default config settings.

In the httpd.conf the only thing I toyed with was the Listen directive.
I set mines to:
Code:
 Listen *:80
The server itself is assigned with the internal IP adress of 192.168.0.50.

My objective is to see the "It Works!" message from the preinstalled index.html file from another computer within the same network (by going to http://192.168.0.50). Which looks allright.

The next step is to see the "It Works!" message by entering the external IP of my router.
To accomplish this, I forwarded port 80 to 192.168.0.50 on my router. But here comes the problem which I cannot seem to solve, or to make up a clever Google query for....

When I access my server by using http://192.168.0.50 "It Works!". When I access my server by using http://[external_ip] "It Doens't Work!".

I'm pretty sure I must be overlooking something... Anyone out there who could give me the final push so I can move on with testing?

Last edited by SirDice; July 9th, 2012 at 09:48. Reason: It's "I": http://en.wikipedia.org/wiki/Capitalization#Pronouns
Reply With Quote
  #2  
Old July 8th, 2012, 10:40
J65nko J65nko is offline
Member
 
Join Date: Nov 2008
Location: Budel, Netherlands
Posts: 285
Thanks: 1
Thanked 73 Times in 63 Posts
Default

If you want to test with the external address you need to access your server externally from the Internet. Only in that case the forwarding from external IP to internal IP will be done. Maybe you can ask a friend to test.

See http://openbsd.org/faq/pf/rdr.html#reflect for an explanation.
Reply With Quote
The Following User Says Thank You to J65nko For This Useful Post:
niellusNL (July 8th, 2012)
  #3  
Old July 8th, 2012, 11:03
niellusNL niellusNL is offline
Junior Member
 
Join Date: Jan 2012
Posts: 21
Thanks: 8
Thanked 0 Times in 0 Posts
Default

Hi J65nko,

thanks for the fast and helpfull reply. I fixed the issue and got it working the way I want to though.
The reason I think, was that I flashed my router (a Netgear WNDR3700v2) with the DD-Wrt firmware. On that the port forwarding didn't work as I wanted.

Trough Google I came on some forums describing some issues with port forwarding using DD-Wrt. So what I did was to flash the router's firmware back to stock, making my plans work instantly.

I read trough the article you posted, which made me realize I really should start reading my No Starch Book of PF
But for now I'm just interested in the workings of Apache.

Thanks again

Last edited by SirDice; July 9th, 2012 at 09:49. Reason: Mind your writing style: http://forums.freebsd.org/showthread.php?t=18043
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
(Simple?) problem with pkg-add Kucks Installation and Maintenance of FreeBSD Ports or Packages 17 December 2nd, 2010 19:39
[Solved] Strange problem with SLiM (Simple login manager) + smbnetfs soupbowl X.Org 5 November 1st, 2010 13:04
[apache22]Directoryindex problem with alias Pango853 Web & Network Services 2 March 18th, 2010 12:13
[Solved] problem in apache22 douglasfim Web & Network Services 14 March 14th, 2010 09:48
[Solved] simple backup with cron - problem with script deadguysleeps Userland Programming & Scripting 13 June 30th, 2009 09:48


All times are GMT +1. The time now is 15:31.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2013, vBulletin Solutions, Inc.
The mark FreeBSD is a registered trademark of The FreeBSD Foundation and is used by The FreeBSD Project with the permission of The FreeBSD Foundation.
Web protection and acceleration provided by CloudFlare
0