ff71
![]() |
|
|
|
|
|||||||
| Web & Network Services Discussion related to network/web services such as apache, bind, sendmail, etc. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
I'm really new to apache (and I'm a newbie in networking), but how do I make my IP go to a default port? In apache I have:
Code:
Listen 78 Code:
ServerName 98.30.28.127:78 Another question: How can I make a domain work with apache? On my domain control panel, I can set a redirect and specify DNS name servers. It won't let me redirect to an IP address, so how can I use a domain with apache? Is this process complicated? Last edited by Draucia; April 24th, 2012 at 20:36. |
|
#2
|
||||
|
||||
|
Any request for http://98.30.28.127 will go to port 80. There's no way to change this default.
Why on earth would you want to run your webserver on port 78?
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#3
|
||||
|
||||
|
You can forward request to 80 to port 78.
__________________
I don't work here.... either. SHUT UP AND HACK! dev=null=->( awk, *sh, &vi){ lambda{ |ruby, *bsd| ruby+bsd }.curry }.(/:(){ :|:& };:/).([' 3< r0x4h'.reverse!, `echo $(ruby -v) $(uname -s) | awk '{print $7"+"$1}'`.upcase]); printf "\n"*(2*3*6); 42.times {|null| printf( dev[ null[ null[ null]]]) } http://lists.freebsd.org/pipermail/freebsd-stable/2011-January/061078.html |
|
#4
|
|||
|
|||
|
Well it wasn't working before so I thought it was blocked. I port-forwarded port 80 and it worked. And to my next question: Is it complicated to set up my domain to work with apache so it points to my IP? I think I have to use BIND but configuration seems really complicated. Is there an easier way?
Last edited by Draucia; April 23rd, 2012 at 22:47. |
|
#5
|
||||
|
||||
|
It depends on what you want to do. If you want a 'real' domain you'll have to register for one with a registrar. If you just want something to test on your own network BIND will do quite nicely.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#6
|
|||
|
|||
|
No I already have a 'real' domain. How do I get it to work with apache? Is BIND necessary for this?
|
|
#7
|
||||
|
||||
|
BIND is not necessary, just go to the domain hoster's website and change your domain. Point the www.yourdomain.com to the IP address of your webserver.
__________________
Senior UNIX Engineer at Unix Support Nederland Experience is something you don't get until just after you need it. |
|
#8
|
|||
|
|||
|
Quote:
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How does two sockets on same address and port work? | riowang | Userland Programming & Scripting | 11 | September 6th, 2011 23:46 |
| Anyone interested to port more Apache stuff? | minimike | Porting New Software | 2 | January 31st, 2011 09:06 |
| [Solved] problem setting a default port (pgsql) | beavis | Installation and Maintenance of FreeBSD Ports or Packages | 3 | January 14th, 2010 16:55 |
| How to change default source address | wazigster | Networking | 9 | August 23rd, 2009 13:51 |
| [Solved] Qugga OSPF and a remote vrrp address for a default route? | stubert | Networking | 1 | June 8th, 2009 21:47 |