Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Thanks for your reply. I am aware of the virtual hosts. The problem here is I am accesing the server on the lan using IP address. Also the need for this is I have different versions of cgi-bins to be run on different ports. I have connecting taomcat server (multiple) to which the requests will be passed based on the port it has been received.
To summarise I need a set up where
1. Multiple tomcats running on different ports
2. Requestes to these is passed by apache.
As all the apps on each of the tomcat is different I need a seperate apache2.
So I am trying to run multiple apaches on different ports whihc will have a one to one realation with tomcats.
Please let me know which is the best way I can take.
If virtual hosts are not acceptable, then you need to run virtual systems. The lightest weight and simplest way is UML (User Mode Linux). The more common method these days is via Xen or VMWare.
After going through this I felt it may not be necessary to run multiple apaches. I will try to use Virtual hosts and try to fix my problem. As I said earlier I access the machine on IP in LAN. Not very sure how to configure the virtual hosts.
What if we want to run multiple instances for different things and didn't want one to affect the other and only have one box? Currently I'm trying to run 2 apache instances but keep having issues regarding:
# /usr/sbin/apache2 -f /etc/apachetmp/apache2.conf -k start
(98)Address already in use: make_sock: could not bind to address 192.168.2.151:80
no listening sockets available, shutting down
Unable to open logs
This currently is not bound to anything as far as I know...the other instance uses .150.
you can definitely run multiple versions/instances of apache, as long as they're listening on different IP/port. Just make sure the Listen directive has a proper a.b.c.d:e address/port combo, and the DocumentRoot's of the instances serve out different content. I've ran a setup like that (one apache for one ip/dns entry, and another apache for a whole variety of ip-, port-, and name-based vhosts) for over 5yrs and it worked great, first on 1.3.x, then on 2.0.x
Do you know why this would occur when using Listen Directive?
WASPDEVDebian01:/etc/apache2# /usr/sbin/apache2 -k start
(98)Address already in use: make_sock: could not bind to address 192.168.2.150:80
no listening sockets available, shutting down
Unable to open logs
Do you know any mods that would prevent this from functioning properly?
Any further assistance you can provide would be greatly appreciated.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.