Solved

redirect port 8080 to 80

Posted on 2004-10-19
8
518 Views
Last Modified: 2010-03-04
I'd like to make Apache listen on ports 80 and 8080. The same content is to be served on both ports. I'm using Fedora Core 2. I tried setting up a virtual host but I'm getting Unable to connect to remote host. Can't access startfile http://localhost:8080/
0
Comment
Question by:fabiovh
  • 5
  • 2
8 Comments
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12347555
Add directive in main part of httpd.conf:
Listen *:8080
0
 
LVL 19

Accepted Solution

by:
ramazanyich earned 100 total points
ID: 12347562
or just
Listen 8080
0
 

Author Comment

by:fabiovh
ID: 12348556
thanks, but now it's only locally accessible, if i try http://192.168.1.2:8080 it says the page cannot be displayed.
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12350541
How your VirtualHost directives looks like ?
0
Backup Your Microsoft Windows Server®

Backup all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

 
LVL 19

Expert Comment

by:ramazanyich
ID: 12350560
Just try following
<VirtualHost 192.168.1.2:8080>
ServerAdmin your@email.address
DocumentRoot /your/document/root
ServerName 192.168.1.2
ErrorLog logs/error_log
TransferLog logs/access_log
</VirtualHost>
0
 

Author Comment

by:fabiovh
ID: 12351924
thanks ramazanyich, but it has to do with the firewall, if I "service iptables stop" it works.
0
 
LVL 5

Assisted Solution

by:mrielf
mrielf earned 25 total points
ID: 12366255
iptables -t nat -A PREROUTING -p tcp --dport 8080 -j REDIRECT --to-port 80
0
 
LVL 19

Expert Comment

by:ramazanyich
ID: 12366801
but without sugested Directive Apache will not listen on port 8080.
I think I deserved ny points :)
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Hi, in this article I'm going to teach you how to run your own site, and how to let people in (without IP). I'll talk about and explain each step... :) By the way, everything in this Tutorial is completely free and legal. This article is for …
If you've heard about htaccess and it sounds like it does what you want, but you're not sure how it works... well, you're in the right place. Read on. Some Basics #1. It's a file and its filename is .htaccess (yes, with a dot in the front). #…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Sending a Secure fax is easy with eFax Corporate (http://www.enterprise.efax.com). First, just open a new email message. In the To field, type your recipient's fax number @efaxsend.com. You can even send a secure international fax — just include t…

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now