Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

redirect port 8080 to 80

Posted on 2004-10-19
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/
Question by:fabiovh
  • 5
  • 2
LVL 19

Expert Comment

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

Accepted Solution

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

Author Comment

ID: 12348556
thanks, but now it's only locally accessible, if i try it says the page cannot be displayed.
Easy, flexible multimedia distribution & control

Coming soon!  Ideal for large-scale A/V applications, ATEN's VM3200 Modular Matrix Switch is an all-in-one solution that simplifies video wall integration. Easily customize display layouts to see what you want, how you want it in 4k.

LVL 19

Expert Comment

ID: 12350541
How your VirtualHost directives looks like ?
LVL 19

Expert Comment

ID: 12350560
Just try following
ServerAdmin your@email.address
DocumentRoot /your/document/root
ErrorLog logs/error_log
TransferLog logs/access_log

Author Comment

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

Assisted Solution

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

Expert Comment

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

Featured Post

Portable, direct connect server access

The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

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

In my time as an SEO for the last 2 years and in the questions I have assisted with on here I have always seen the need to redirect from non-www urls to their www versions. For instance redirecting http://domain.com (http://domain.com) to http…
It is possible to boost certain documents at query time in Solr. Query time boosting can be a powerful resource for finding the most relevant and "best" content. Of course the more information you index, the more fields you will be able to use for y…
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

790 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