[Ilugc] Running apache on different port

2012-05-04 Thread Suresh Kumar
Hello friends,

 i am currently running a Red Hat 5.2 Linux server,
 i have the current scenario as
 we have a kerio mailserver running on this machine , it runs on port 80
 but i also want to run apache server simultaneously, so when i checked for
the status of the apache server
 it said that httpd stopped,
 if i start the httpd service, i am sure that i there will be a  conflict.
 so in order to avoid this, i am planning to run the apache server at
different port say 81
( i think this can be setup by changing the Listen:80 to Listen:81 in the
httpd.conf file)
 but in that case the webpages will be served only when i explicitly
mention the port no as 81
 for eg:
http://localhost:81
but what i want to do is that . i want to run apache server at port 81 and
want to access the pages without mentioning the port 81
 some thing similar to
   http://localhost

Is this possible..?

Thanks in advance.
-- 
~ J Suresh Kumar
  95000 90432
http://myrakshana.info/blog/
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Running apache on different port

2012-05-04 Thread 0
   but in that case the webpages will be served only when i explicitly
 mention the port no as 81
   for eg:
  http://localhost:81
 but what i want to do is that . i want to run apache server at port 81 and
 want to access the pages without mentioning the port 81
   some thing similar to
 http://localhost

 Is this possible..?

Nope. In simple terms, the address bar format is 
(protocol)://host[:port]. Port is optional if you are going to use the 
default port for the associated protocol such port 80 for http. If you 
don't use the default for the protocol, you have to explicitly specify it.

-- 
0
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc


Re: [Ilugc] Running apache on different port

2012-05-04 Thread Mehul Ved
On Fri, May 4, 2012 at 6:01 PM, Suresh Kumar suresh1...@gmail.com wrote:
  but in that case the webpages will be served only when i explicitly
 mention the port no as 81
  for eg:
    http://localhost:81
 but what i want to do is that . i want to run apache server at port 81 and
 want to access the pages without mentioning the port 81
  some thing similar to
   http://localhost

 Is this possible..?

I am not familiar with Kerio but why do you need to run a mail server
at port 80?
There are a couple of ways around to solve your problem.

Situation 1: If you have 2 separate domains or ip addresses then you
can set a firewall rule that if the request comes in on kerio.domain
then it goes to port 80 and if it comes in on http.domain(s) then go
to port 81. But, this can be a messy solution and should be avoided as
far as possible.

Situation 2: Run apache on port 80, run kerio on a port other than 80
and setup a virtual domain which points to that port. Examples of this
setup can be found here
http://httpd.apache.org/docs/2.2/vhosts/examples.html#port. IMO, this
is a cleaner and easier to maintain/debug solution.

-- 
With Regards,
Mehul Ved
___
ILUGC Mailing List:
http://www.ae.iitm.ac.in/mailman/listinfo/ilugc