Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Write an article for LinuxForums Today! Win Great Prizes!
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > GNU Linux Zone > Linux Networking > Port forwarding - apache server not visible from public side

Forgot Password?
 Linux Networking   Hardware/Software related, Modems, Internet connection sharing, IPTables etc.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds
Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 10-25-2009   #1 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 3
Port forwarding - apache server not visible from public side

I'm new to apache, this is the first web server I've attempted to configure and I just can't seem to get it visible. Yes, apache IS running. I know apache is running correctly (I can view the test html files on the private side), I can view files like 192.168.1.250:8080/test.html. My apache/conf/httpd.conf includes:

Listen 8080
ServerName 192.168.1.250:8080

which are the only 2 lines I edited I believe, besides AddType for php.

Having gone over lots of apache config walkthroughs and such, I thought my router was to blame (verizon blocks port 80 requests apparently?). My router is a Verizon Fios ActionTec M1424WR. The port forwarding rule is setup as:
Networked Computer / Device: 192.168.1.250
Network Address: 192.168.1.250:8080
Public IP Address:
Remote Host IP Address:
Protocols: HTTP - TCP Any -> 80
WAN Connection Type: All Broadband Devices
Status: Active

But trying to load my public IP with :8080 just loads my router's config page. When I had the port changed to something else earlier (8095), it would just be not found.

Im using Slackware 12 with apache 2.2, php 5.2, mysql 5.1. I hope this is something obvious and im just a noob
uldaman is offline  



Reply With Quote
Old 10-25-2009   #2 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 2,218
is your router already listening on port 8080?

I've never used a verizon router, but typically all port forwarding entails is using the router GUI and telling it to forward the specified port using the specified protocol (TCP in your case) to the internal IP address
coopstah13 is offline   Reply With Quote
Old 10-25-2009   #3 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 3
Yes, it is. I actually mistyped that rule above, its listening on HTTP Secondary (8080), not 80.
uldaman is offline   Reply With Quote
Old 10-25-2009   #4 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 2,218
if your router is listening on 8080 then i'm guessing that is the problem, change your apache port to something else
coopstah13 is offline   Reply With Quote
Old 10-26-2009   #5 (permalink)
Just Joined!
 
Join Date: Oct 2009
Posts: 3
Ive tried setting it 8095. My apache conf has "Listen 8095", and "ServerName 192.168.1.250:8095". I feel like I've tried every combination of setting with this router to the point that there is something very basic I'm missing - is there anyway you could list me the basic requirements you can think of to set something like this up?
uldaman is offline   Reply With Quote
Old 10-26-2009   #6 (permalink)
Linux Guru
 
coopstah13's Avatar
 
Join Date: Nov 2007
Location: NH, USA
Posts: 2,218
these are some of the most basic functionality a router will provide

Determine local IP
Determine local port
tell router firewall to not block local port
tell router to forward requests on local port to local ip
Possibly restart router after applying changes

If this is not working, there are a few possibilities:
You did it wrong, recheck your steps.
Your ISP simply does not allow you to do this.
coopstah13 is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
A Newbie's Getting Started Guide to Linux
Learn the basics of the Linux operating systems. Get to know what it is all about, and familiarize yourself with the practical side. Basically, if you're a complete Linux newbie and looking for a quick and easy guide to get you started this is it.
subscribe
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 08:12 PM.






© 2000 - - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.1