Fedora Linux Support Community & Resources Center
  #1  
Old 4th August 2004, 07:48 PM
superbnerd
Guest
 
Posts: n/a
Apache port

Is there a way to configure apache to listen on port 80udp instead of tcp, and will the browser automatically know not to use tcp becuase I have another app thats needs to use port 80tcp?
Thanks
Reply With Quote
  #2  
Old 4th August 2004, 07:59 PM
superbnerd
Guest
 
Posts: n/a
our would port 8080tcp work better? would the user have to specify :8080 in the url, I hope not, but then how does the browser know which server to look at. I have two servers (windows and fc2) behind a linksys router, and I need to know how to have different domains forward to different servers.
Reply With Quote
  #3  
Old 4th August 2004, 11:15 PM
Jman Offline
Registered User
 
Join Date: Mar 2004
Location: Minnesota, USA
Age: 27
Posts: 7,909
Edit httpd.conf and change the Listen directive. Note that you have to open port 8080. This works best with the NAT forwarding I believe you have. And yes, the domain name would have to have :8080 at the end.

Also consider Virtual Hosts.
Reply With Quote
  #4  
Old 5th August 2004, 09:26 AM
kosmosik's Avatar
kosmosik Offline
Registered User
 
Join Date: Apr 2004
Location: Warsaw, Poland
Age: 32
Posts: 1,085
you can do:
1] virtual host on different port (probably worse)
2] a name based virtual host (apache documentation has it covered very well)
3] a reverse proxy from one virtual host to different port on different/local machine...

but tell us exactly what is the problem here?
Reply With Quote
  #5  
Old 6th August 2004, 11:06 PM
superbnerd
Guest
 
Posts: n/a
well, I am already using named based virtual host, but like jman said I would have to specify :8080 in the url wihch is undesirable for obvious reasons. the problem is that I am hosting several websites in development and have another application (an ip camera) that wants to use port 80 to let the owner view a store remotely.
Reply With Quote
  #6  
Old 6th August 2004, 11:31 PM
blammo's Avatar
blammo Offline
Registered User
 
Join Date: May 2004
Location: That toddlin' town...
Posts: 296
I might be missing something here, but won't the camera software let you specify a different port? If it doesn't, then it must of been purchased at Toys R Us!

Last edited by blammo; 7th August 2004 at 12:22 AM.
Reply With Quote
  #7  
Old 7th August 2004, 04:49 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
No other application should be using port 80 - that is the "default" HTTP port and is "reserved" for web servers. If you've got something else conflicting with the server, then it's typically that other thing that's wrong. And you can't use both UPD and TCP on the same port - port 80 is port 80, no matter what protocol it "talks" with.
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
  #8  
Old 7th August 2004, 04:55 AM
superbnerd
Guest
 
Posts: n/a
welll thanks for actually aswering one of my post. perhaps you could help me with my boot prob in the installations section.
I gess I considier this thread done, unless someone has a brillan idea.
Reply With Quote
  #9  
Old 7th August 2004, 10:17 AM
blammo's Avatar
blammo Offline
Registered User
 
Join Date: May 2004
Location: That toddlin' town...
Posts: 296
Ach, das ist a bunch of hooey!! As Crackers said, port 80 is reserved and is the default for Apache as well as IIS. Any software package that is correctly written, that needs a web port to operate, the coder should know this, and choose a port other than 80 as the default...and most likely that will be port 8080! As for the post in the installation forum that you're looking for help on, I can't seem to get a rise out of it! Would you care to elaborate?
Reply With Quote
  #10  
Old 7th August 2004, 11:25 AM
rkl Offline
Registered User
 
Join Date: Jul 2004
Posts: 153
Virtual hosting surely?

We host hundreds on sites at work on a single box and you just use the VirtualHost system to allow all of them to listen on the same IP (I'll use 192.168.0.1 as an example) and port:

Code:
Listen 80  (or Port 80 if using Apache 1.X)
NameVirtualHost 192.168.0.1
<VirtualHost 192.168.0.1>
ServerName www.site1.com
DocumentRoot /path/to/site1/docs
ErrorLog /path/to/site1/logs/error_log
TransferLog /path/to/site1/logs/access_log
</VirtualHost>

<VirtualHost 192.168.0.1>
ServerName www.site2.com
DocumentRoot /path/to/site2/docs
ErrorLog /path/to/site2/logs/error_log
TransferLog /path/to/site2/logs/access_log
</VirtualHost>
You can put the www.site1.com and www.site2.com in your /etc/hosts file with IPs pointing to 192.168.0.1 and then point your apps to the names, not the IPs. You won't need to do this if you're actually an ISP hosting sites - just register the domains for real and point the www addresses to your (public) IP. Problem solved - two sites hosted on the same IP and port, but with different web addresses, document trees and log trees.
Reply With Quote
  #11  
Old 8th August 2004, 05:24 AM
crackers's Avatar
crackers Offline
Retired Community Manager
 
Join Date: Feb 2004
Location: Seattle, WA, USA
Age: 56
Posts: 3,423
I re-read the part about the two boxes and I think I get what you want. You have two actual web servers (one Apache on Linux, one camera on Windows?) and you'd like them both to respond on port 80 (so folks won't have to type in port numbers).

Firstly, the Linksys (as it is) doesn't have very fancy NAT/Masquerading capabilities to be able to separate requests by URL. What you can do is configure Apache to forward particular requests to the Windows server. (You'll have to read the Apache docs on this - I did it a long time ago and it's really hazy...) You might want to combine that with the VirtualHost options mentioned above if you actually have multiple host URLs already.
__________________
Linux User #28251 (April '93)
Professional Java Geek :cool:
Reply With Quote
Reply

Tags
apache, port

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache Proxypass + SSL Port gabriellai Servers & Networking 0 2nd June 2009 07:31 AM
Add Odd Port to Apache rwadams007 Servers & Networking 3 28th June 2006 11:10 AM
Me, Apache, and Port 443 Crux Using Fedora 9 6th January 2006 07:37 PM
apache http port teethlikelions Servers & Networking 1 17th November 2005 11:34 PM
Apache port namit Using Fedora 2 7th October 2005 07:06 PM


Current GMT-time: 22:37 (Tuesday, 18-06-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat