logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Restart/start individual virtual server
Author
nagabushane



Joined: 21 Dec 2007
Posts: 2

PostPosted: Fri 21 Dec '07 6:42    Post subject: Restart/start individual virtual server Reply with quote

Hi All,

I configured name based virtual servers in Apache. How can I restart/start individual virtual server.

Thanks & Regards,
Nagabushan
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 21 Dec '07 7:45    Post subject: Reply with quote

No, you have virtual hosts, not servers.

Apache is the server, it's configured for multiple hostnames.
Just restart Apache.

One could have multiple instances of Apache running, bound to different IP addresses, serving multiple different hostnames, at which point you would then restart the different instances of Apache, but never by hostname.
Back to top
nagabushane



Joined: 21 Dec 2007
Posts: 2

PostPosted: Fri 21 Dec '07 8:16    Post subject: Restart/start individual virtual server Reply with quote

Hi,

If I configure IP based virtual hosts, can I restart individual virtual hosts based on IP?

Thanks,
Nagabushan
Back to top
glsmith
Moderator


Joined: 16 Oct 2007
Posts: 2268
Location: Sun Diego, USA

PostPosted: Fri 21 Dec '07 8:35    Post subject: Reply with quote

No, cause you are still only using the one instance (and it's children) of Apache. You just have that one Apache bound to multiple IPs

Instance 1:
Port 80
IPs: 127.0.0.1, 192.168.1.10, 123.123.123.132

Multiple instance would use different configs, and using services each service is named differently.

Instance 1: (httpd.exe -n Inst1 -f configfile1.conf -k start)
IP 123.123.123.123:80
hosts www.this.com, www.that.com

Instance 2: (httpd.exe -n Inst2 -f configfile2.conf -k start)
IP 123.123.123.124:80
hosts www.somethingelse.com www.yetanother.com

etc etc,

Now and only in this case you could restart one or the other,

httpd.exe -n Inst2 -k restart (would resart the second instance with it's hosts)

etc etc.

Gregg
Back to top


Reply to topic   Topic: Restart/start individual virtual server View previous topic :: View next topic
Post new topic   Forum Index -> Apache