Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
When you specify a virtual server (e.g. in your httpd.conf), you can specify a specific IP associated with that particular "http server".
If you're using Apache2, you've probably already got multiple http daemons: the actual work done by the server will be allocated most efficiently among the daemons.
I need to run multiple httpd daemon. I have multiple ip's assigned on one interface and i want to run multiple websites on these ip's,
And i need to run multiple apache daemons for this. How can i do that
Thanks
Sandeep
You mean you have virtual ip's assigned to your interface, right? If so, then you don't need multiple httpd daemons.
In my apache server i have 14 virtual ip's from 192.168.1.81-95 and I'm hosting 14 sites with them.
Last edited by Sayan Acharjee; 04-21-2010 at 12:25 AM.
thanks for the reply
can you please provide little more detail on this. Precisely, I want
to run multiple httpd based on the httpd.conf supplied as start
parameter.
Create a set of init scripts based on the one supplied by redhat, and
modify the invocation of apachectl or httpd within the script to pass
different -f parameters.
thanks for the reply
can you please provide little more detail on this. Precisely, I want
to run multiple httpd based on the httpd.conf supplied as start
parameter.
Create a set of init scripts based on the one supplied by redhat, and
modify the invocation of apachectl or httpd within the script to pass
different -f parameters.
Sandeep
Create some virtual ip's, edit the httpd.conf file with these virtual ip's and their respective document root (assuming you know how to configure apache).
Restart apache and you are done.
okay, then how will these websites run under different users, groups and permissions
because that's why we want to use ip based hosting on multiple daemons for extra security.
okay, then how will these websites run under different users, groups and permissions
because that's why we want to use ip based hosting on multiple daemons for extra security.
Not sure what you meant by saying running a website under different users, groups ans permissions.
You can apply https if you want one particular site to be accessed by one particular user.
If separate httpd daemons must be run for each host, separate
installations of Apache for each virtual host have to be created. For
each installation, use the Listen directive in the httpd.conf
configuration file to select which IP address or virtual host that
daemon services"
Do I need to have separate installation of apache or copying the conf
folder will do ?
If separate httpd daemons must be run for each host, separate
installations of Apache for each virtual host have to be created. For
each installation, use the Listen directive in the httpd.conf
configuration file to select which IP address or virtual host that
daemon services"
Do I need to have separate installation of apache or copying the conf
folder will do ?
Create a separate httpd installation for each virtual host. For each installation, use the Listen directive in the configuration file to select which IP address (or virtual host) that daemon services. e.g.
If you wish to run separate instances of Apache, you will need to create a separate config file and init script for each one. Also, each instance will have to listen on its own port.
Apache is designed to run as a single instance, spawning worker processes to handle requests. I am not sure what you think will be achieved by running many instances of the parent.
Quote:
Originally Posted by sayan_acharjee
Not sure what you meant by saying running a website under different users, groups ans permissions.
You can apply https if you want one particular site to be accessed by one particular user.
I'm sure what you meant is .htaccess/.htpasswd, right?
HTTPS is just a protocol... it doesn't provide any authentication.
Quote:
Originally Posted by sandeepthug
we want to use ip based hosting on multiple daemons for extra security.
If what you want to do is have multiple, completely segmented hosting platforms... such as a shared web host at an ISP, running a single Apache instance proxying multiple chrooted Apache instances, each listening on its own port, would seem like the right solution.
Can you clarify the purpose of your attempts, not just the attempts themselves?
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.