| 
 
 
 | 
| Keep Server Online 
 If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.
 
 or
 
 
   
 A donation makes a contribution towards the costs, the time and effort that's going in this site and building.
 
 Thank You! Steffen
 
 Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
 |  | 
 | 
| | 
| | 
|  Topic: Virtual Host on Non-Standard Port Apache 2.2 |  |  
| Author |  |  
| nickchalloway 
 
 
 Joined: 13 Sep 2006
 Posts: 1
 
 
 | 
|  Posted: Wed 13 Sep '06 0:52    Post subject: Virtual Host on Non-Standard Port Apache 2.2 |   |  
| 
 |  
| I am trying to run VirtualHost on Apache 2.2 for two domains on my home server, on a non standard port because my ISP blocks port 80.
 
 I am trying to configure zoneedit to point the A Record to the correct port
 ip:port (i.e. with the specific port appended) but I don't think they will let me do that.  Otherwise I think I will have to setup a WebForward which I have
 not been able to get to work with VirtualHost on Apache, I think because of
 the way it forwards the headers.  If I am mistaken please correct me.
 
 Currently both domains are resolving to the first domain.  I think this is happening because both are being forwarded to the same port.
 
 
 Any ideas?
 
 I thought maybe I could webforward them to differnet ports, but this is pretty complicated for a noob like me.  If that is the only way to do it then this is what I will do.
 
 Thanks,
 
 Nick
 |  |  
| Back to top |  |  
| Jorge 
 
 
 Joined: 12 Mar 2006
 Posts: 376
 Location: Belgium
 
 | 
|  Posted: Wed 13 Sep '06 9:28    Post subject: |   |  
| 
 |  
| the port has nothing to do with DNS 
 DNS just resolved somewhere to an IP adress
 
 we have common tld's (top level domains - com, net, org, be, de, es...)
 
 you probebly have a sub part of that
 
 mydomain.com
 
 the port is protocol dependend:
 http = 80
 https = 443
 smtp = 25
 pop3 = 110
 ping = 0
 ...
 
 so by entering a url http://mydomain.com the browser will use the default for the http protocol in this case 80, that can be overwritten by:
 http://mydomain.com:8080 for example (although 8080 is usually a proxy)
 
 this can't be done from the DNS since on the server mydomain.com can exist a lot services, mail, http, IRC...
 
 a good solution is to dyndns.org for example they do support that!
 
 your domain on port 80 is just a redirect to samedomain port 8080 wich  you then listen too.
 |  |  
| Back to top |  |  
 
 | 
 |  | 
 |  |