listen on port 1080

I have apache running on a solaris 9 server, also have sun calendar running on it, the calendar is using port 80 for web access to calendars so I had to change the apache
server to listen on port 1080. I added a seconed ip address and gave that IP address a name in the host file, then added a Address record in DNS for that name and IP address.

I can get to the apache home page by going to    http://my.server.com:1080   but want it to go by not putting in the port :1080

is there a way to create a alieas in DNS to map http://my.server.com  to http://my.server.com:1080 or do it in apache config?

Thanks,

bt707Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ahoffmannCommented:
this is not an DNS issue, you need a proxy or firwall for that
but if you already have a new IP, why do you need 1080 then?
0
bt707Author Commented:
I have Sun Iplanet Calendar running on port 80 and Apache running on port 1080

I have 2 ip's for 1 nic card

host file looks like this

127.0.0.1       localhost      
167.32.44.33   calendar.xyz.com  calendar   loghost
167.32.44.34   tst.xyz.com       loghost

in dns I have a Address record for each
167.32.44.33   calendar.xyz.com
167.32.44.34   tst.xyz.com


Problem is if I use a browser and put in:

http://calendar.xyz.com  it takes me to the Calendar login page which is correct.

If I put in

http://tst.xyz.com  it also takes me to the Calendar login page whic is NOT correct.

If I put in

http://tst.xyz.com:1080   then it takes me to the Apache home page.

I must not have something set correct here, but not seeing it.

Thanks












0
bt707Author Commented:
only thing I can see here is that may I have to have two seperate nic cards to do this with, but seems like I could do this somehow with only one?
0
Cloud Class® Course: CompTIA Healthcare IT Tech

This course will help prep you to earn the CompTIA Healthcare IT Technician certification showing that you have the knowledge and skills needed to succeed in installing, managing, and troubleshooting IT systems in medical and clinical settings.

ahoffmannCommented:
aha, I understand,
your calender web server probably listens on all interfaces, you can test with
  netstat -an
you need to configure your calender server so that it listens on one IP only
0
ahoffmannCommented:
> .. may I have to have two seperate nic cards to do this with ..
no, you can use one NIC with multiple IPs
0
bt707Author Commented:
ahoffmann,

the calendar is only listing on port 80
calendar config:
service.http.port = "80"

I also tested by downing the calendar then going to

http://tst.xyz.com   # with calendar down I get connection refused with this, with calendar up I get the calendar page with this

http://tst.xyz.com:1080 # with this I can get to the page any time.

I just can't make it go to http://tst.xyz.com without putting a port with it and the calendar will not work if anything is bound and listing on port 80

seems like I need to change something in the apache.conf but it I let it listen to everything or 80 then it kills the calendar.
0
bt707Author Commented:
I just want to be able to give the apache servers page a address easy for the users, like  http://calendar-help.xyz.com and they can remember that and get to it
that way, don't want to have to put a port on the address, but that does work.
0
ahoffmannCommented:
sorry, don't have a calender config handy, but ther must be somthing like
   server-http.ip=
you have to set it to one IP, if it is unset the server uses all IP (0.0.0.0)

After changeing that, restart the server. then netstat should show somthing like
  ... 167.32.44.33   80   LISTEN
then you can configure apache to listen on 167.32.44.34 port 80
after restart proofe again with netstat
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
bt707Author Commented:
Thanks ahoffmann,

That was correct, I just couldn't find it, after reading your post I went back and dug back into it and found the setting you said to look for.

on the Sun calendar it was:

service.listenaddr = "INADDR_ANY"  # so changed it from defaut "ANY" and put in my first address and now both services are listing on port 80.

Thanks,

0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Apache Web Server

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.