Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

redirect port 8080 to 80

Posted on 2004-10-19
8
Medium Priority
?
2,713 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 400 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
Nothing ever in the clear!

This technical paper will help you implement VMware’s VM encryption as well as implement Veeam encryption which together will achieve the nothing ever in the clear goal. If a bad guy steals VMs, backups or traffic they get nothing.

 
LVL 19

Expert Comment

by:ramazanyich
ID: 12350541
How your VirtualHost directives looks like ?
0
 
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 100 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Over the last year I have answered a couple of basic URL rewriting questions several times so I thought I might as well have a stab at: explaining the basics, providing a few useful links and consolidating some of the most common queries into a sing…
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 …
This course is ideal for IT System Administrators working with VMware vSphere and its associated products in their company infrastructure. This course teaches you how to install and maintain this virtualization technology to store data, prevent vuln…
this video summaries big data hadoop online training demo (http://onlineitguru.com/big-data-hadoop-online-training-placement.html) , and covers basics in big data hadoop .
Suggested Courses
Course of the Month13 days, 10 hours left to enroll

963 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