LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 08-08-2001, 07:17 PM   #1
cauchy
LQ Newbie
 
Registered: Aug 2001
Distribution: Slackware 7.2
Posts: 13

Rep: Reputation: 0
HTTP on port 8080


I'm trying to set up a web server on my home machine, which is running Apache on Slackware 7.2 on the 2.2.19 kernel. Unfortunately, I'm using Verizon DSL and Verizon just blocked port 80 in an effort to fight off Code Red (as if my Apache was ever vulnerable). In order to get around this, I set http to port 8080 in /etc/services and told httpd.conf to go to port 8080 as well; since my computer's behind a Linksys router, I had the router forward traffic on port 8080 to it. I also got the domain "foo.bar.com" and dns2go to get around Verizon's forced use of dynamic IPs. I restarted apache and inetd (and then the entire machine just for laughs).

After having done all of this, I can type http://foo.bar.com:8080/ into a browser and get my front page. However, http://foo.bar.com/ eventually times out or just dies immediately because it seems that Apache is still trying to use port 80. And I know this is the only messed up service because ssh, telnet, ftp, finger, and talk seem to be working fine. Have I missed something in the configuration? What else do I need to do (other than switching ISPs) to make the web server work?

Thanks,
cauchy
 
Old 08-09-2001, 03:12 AM   #2
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 47
It doesn't look like anything is wrong to me!! As when you type http://foo.bar.com/ your browser really connects to http://foo.bar.com:80/ hence fails as your httpd is listening on 8080, so you'll need to either ensure that everyone uses the http://foo.bar.com:8080/ or make your route forward any requests that arrive on port 80 to port 8080 on your server (if you can do this).

HTH

Jamie...
 
Old 08-09-2001, 06:16 AM   #3
raz
Member
 
Registered: Apr 2001
Location: London
Posts: 408

Rep: Reputation: 31
Jamie's right.
To confirm this type as root on your Linux box.

#netstat -natp

You should see the httpd service running on your ip on port 8080.

/Raz
 
Old 08-09-2001, 07:29 PM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you should be able to do this with ipchains,

with -j REDIRECT 8080

all browsers hitting the machine on port 80 will be redirected to 8080 where they will find apache.



ipchains -A input -p TCP -d 0/0 www -j REDIRECT 8080

Last edited by DavidPhillips; 08-09-2001 at 07:31 PM.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Port 80-->8080?? flamesrock Linux - Software 4 08-01-2004 01:40 AM
problem in IM with the 8080 port dred Linux - Networking 0 06-06-2004 03:21 AM
Openned port 8080 http-proxy on Fedora mell Red Hat 1 04-20-2004 02:37 PM
What command changes port 8080 to 80? TSynergy Linux - Newbie 4 09-17-2003 05:18 AM
firewall.rc.config says :"open port 8080" but nmap says port is closed saavik Linux - Security 2 02-14-2002 12:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:55 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration