Solved

redirect port 8080 to 80

Posted on 2004-10-19
8
477 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
Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

 
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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

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…
If your site has a few sections that need to be secure when data is transmitted between the server and local computer, such as a /order/ section for ordering or /customer/ which contains customer data, etc it would of course be recommended to secure…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

759 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