[users@httpd] How to solve ONE fixed IP serving multiple web-servers running on VMs
Hi all, I have following problem: Host Ubuntu 14.04 desktop VMs Ubuntu 14.04 desktop/server edition VirtualBox I have several web-servers running on VMs, each with its own domain/subdomain and internal IP address. But I have only one Fixed IP/External IP. All VMs are Apache server running WordPress. I can create many internal IPs on router. Please advise how can I make all web-servers be browsed on Internet Thanks in advance. Regardssatimis
Re: [users@httpd] 回覆︰ [users@httpd] How to solve ONE fixed IP serving multiple web-servers running on VMs
Have no experience with HA Proxy, sorry. Your task can be solved with plain Apache, information about using one as reverse proxy is easier to find. -- With Best Regards Marat Khalili On 25/12/15 18:44, Stephen Liu wrote: Hi Marat, Thanks for your advice. I suppose you referred to HA Proxy HAProxy http://www.haproxy.org/ I'm now busily googling on document re its setup on domain base. Can you help? Thanks Regards Stephen L Marat Khalili於 2015年12月25日 (週五) 11:31 PM 寫道﹕ Reverse proxy running on host may be the answer. It may discriminate sites by domain name and redirect requests to corresponding virtual hosts. -- With Best Regards Marat Khalili On 25/12/15 18:11, Stephen Liu wrote: Hi all, I have following problem: Host Ubuntu 14.04 desktop VMs Ubuntu 14.04 desktop/server edition VirtualBox I have several web-servers running on VMs, each with its own domain/subdomain and internal IP address. But I have only one Fixed IP/External IP. All VMs are Apache server running WordPress. I can create many internal IPs on router. Please advise how can I make all web-servers be browsed on Internet Thanks in advance. Regards satimis
[users@httpd] 回覆︰ [users@httpd] 回覆︰ [users@httpd] How to solve ONE fixed IP serving multiple web-servers running on VMs
Hi, Marat, Whether following document is good for me to follow; Building Apache for Proxying http://www.apachetutor.org/admin/reverseproxies ? Thanks RegardsStephen L | | | | | | | | | Running a Reverse Proxy with Apache:As with any modules, the first thing to do is to load them in httpd.conf (this is not necessary if we build them statically into Apache). | | | | 查看於 www.apachetutor.org | Yahoo 預覽 | | | | | Marat Khalili於 2015年12月26日 (週六) 12:01 AM 寫道﹕ Have no experience with HA Proxy, sorry. Your task can be solved with plain Apache, information about using one as reverse proxy is easier to find. -- With Best Regards Marat Khalili On 25/12/15 18:44, Stephen Liu wrote: Hi Marat, Thanks for your advice. I suppose you referred to HA Proxy HAProxy http://www.haproxy.org/ I'm now busily googling on document re its setup on domain base. Can you help? Thanks Regards Stephen L Marat Khalili 於 2015年12月25日 (週五) 11:31 PM 寫道﹕ Reverse proxy running on host may be the answer. It may discriminate sites by domain name and redirect requests to corresponding virtual hosts. -- With Best Regards Marat Khalili On 25/12/15 18:11, Stephen Liu wrote: Hi all, I have following problem: Host Ubuntu 14.04 desktop VMs Ubuntu 14.04 desktop/server edition VirtualBox I have several web-servers running on VMs, each with its own domain/subdomain and internal IP address. But I have only one Fixed IP/External IP. All VMs are Apache server running WordPress. I can create many internal IPs on router. Please advise how can I make all web-servers be browsed on Internet Thanks in advance. Regards satimis
Re: [users@httpd] How to solve ONE fixed IP serving multiple web-servers running on VMs
Reverse proxy running on host may be the answer. It may discriminate sites by domain name and redirect requests to corresponding virtual hosts. -- With Best Regards Marat Khalili On 25/12/15 18:11, Stephen Liu wrote: Hi all, I have following problem: Host Ubuntu 14.04 desktop VMs Ubuntu 14.04 desktop/server edition VirtualBox I have several web-servers running on VMs, each with its own domain/subdomain and internal IP address. But I have only one Fixed IP/External IP. All VMs are Apache server running WordPress. I can create many internal IPs on router. Please advise how can I make all web-servers be browsed on Internet Thanks in advance. Regards satimis
Re: [users@httpd] How to solve ONE fixed IP serving multiple web-servers running on VMs
On Fri, 25 Dec 2015 15:11:13 + (UTC) Stephen Liuwrote: > Hi all, > > I have following problem: > > Host Ubuntu 14.04 desktop > VMs Ubuntu 14.04 desktop/server edition > VirtualBox > > I have several web-servers running on VMs, each with its own > domain/subdomain and internal IP address. But I have only one Fixed > IP/External IP. > > All VMs are Apache server running WordPress. I can create many > internal IPs on router. Please advise how can I make all web-servers > be browsed on Internet Thanks in advance. This may be an issue for your networking config. That is to say, check what networking options your OS and VM environment provide. If you can't find a native solution, you could run an apache instance on your external IP, with a VirtualHost proxying to each of the VMs. Of course, if you could dispense with the VMs and substitute plain old VirtualHosts, that's a far more efficient solution. -- Nick Kew - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org
[users@httpd] 回覆︰ [users@httpd] How to solve ONE fixed IP serving multiple web-servers running on VMs
Hi Marat, Thanks for your advice. I suppose you referred to HA ProxyHAProxy http://www.haproxy.org/ I'm now busily googling on document re its setup on domain base. Can you help? Thanks RegardsStephen L Marat Khalili於 2015年12月25日 (週五) 11:31 PM 寫道﹕ Reverse proxy running on host may be the answer. It may discriminate sites by domain name and redirect requests to corresponding virtual hosts. -- With Best Regards Marat Khalili On 25/12/15 18:11, Stephen Liu wrote: Hi all, I have following problem: Host Ubuntu 14.04 desktop VMs Ubuntu 14.04 desktop/server edition VirtualBox I have several web-servers running on VMs, each with its own domain/subdomain and internal IP address. But I have only one Fixed IP/External IP. All VMs are Apache server running WordPress. I can create many internal IPs on router. Please advise how can I make all web-servers be browsed on Internet Thanks in advance. Regards satimis
Re: [users@httpd] 回覆︰ [users@httpd] 回覆︰ [users@httpd] How to solve ONE fixed IP serving multiple web-servers running on VMs
Looks ok at first glance. -- With Best Regards Marat Khalili On December 25, 2015 7:17:47 PM GMT+03:00, Stephen Liuwrote: >Hi, Marat, >Whether following document is good for me to follow; >Building Apache for Proxying >http://www.apachetutor.org/admin/reverseproxies >? > >Thanks >RegardsStephen L > >| | >| | | | | | >| Running a Reverse Proxy with Apache:As with any modules, the first >thing to do is to load them in httpd.conf (this is not necessary if we >build them statically into Apache). | >| | >| 查看於 www.apachetutor.org | Yahoo 預覽 | >| | >| | > > > >Marat Khalili 於 2015年12月26日 (週六) 12:01 AM 寫道﹕ > > > >Have no experience with HA Proxy, sorry. Your task can be solved with >plain Apache, information about using one as reverse proxy is easier to >find. > > -- > > With Best Regards > Marat Khalili > On 25/12/15 18:44, Stephen Liu wrote: > > Hi Marat, > Thanks for your advice. I suppose you referred to HA Proxy HAProxy > http://www.haproxy.org/ >I'm now busily googling on document re its setup on domain base. Can >you help? Thanks > Regards Stephen L > > > Marat Khalili 於 2015年12月25日 (週五) 11:31 PM 寫道﹕ > > > >Reverse proxy running on host may be the answer. It may discriminate >sites by domain name and redirect requests to corresponding virtual >hosts. > > -- > > With Best Regards > Marat Khalili > > On 25/12/15 18:11, Stephen Liu wrote: > > Hi all, > > I have following problem: > > Host Ubuntu 14.04 desktop > VMs Ubuntu 14.04 desktop/server edition > VirtualBox > >I have several web-servers running on VMs, each with its own >domain/subdomain and internal IP address. But I have only one Fixed >IP/External IP. > >All VMs are Apache server running WordPress. I can create many >internal IPs on router. > Please advise how can I make all web-servers be browsed on Internet > Thanks in advance. > Regards satimis > > > > > > > > > >
[users@httpd] Re: AH00273: apr_proc_mutex_lock failed, possibly caused by cron, systemd or su
Rainer Canavan sevenval.com> writes: > we've got an obscure problem with the apache httpd that was shipped > with CentOS 7.2. We perform automatic builds and updates via cron, > and, since the update to CentOS 7.2. The update script is triggered by > cron and stops, yum updates and starts the httpd. When the next cron > job that is run as the same user as the httpd (not the update job) > terminates, the httpd frequently fails, starting with a AH00273: > apr_proc_mutex_lock failed message, and then a never ending loop of > AH00272 messages, one from each httpd process that is forked, until > the listener process is stopped. > Does anyone have any ideas what may cause these mutex errors? Sorry - no ideas, but I'm having the exact same issue, and have been trying for the better part of a week to figure out what is causing this. My symptoms are identical, albeit with a slightly different execution path. I'm running the packaged and OS-provided httpd, but executed as an alternate service account with a provided configuration directory (httpd -d /opt/app/myApp/httpd). This works for at least days on-end without issue. I then added a logrotate cron job, executing as the same user, with a postrotate command to run "/usr/sbin/httpd -d /opt/app/myApp/httpd -k graceful". Once executed through cron, I see exactly the same issue that you are. If I execute directly in a bash shell of the service account without cron, I can repeatedly execute without any concerns. I tried a compile-from-source HTTPD (2.4.18), suspecting something amiss with the CentOS-provided HTTPD - but still experienced the exact same issue. So cron appears to be a common factor here. My only work-around so far has been to disable the logrotate cron job. I've run multiple instances of similar configurations previously without issue, and am not exactly sure what has changed to cause this in my new builds. I am curious if this is new to CentOS 7.2, or possibly 7.1. I had suspected SELinux. I tried setting the SELINUX=permissive in /etc/sysconfig/selinux and rebooting, but still experienced the same issue. I created a 2nd CentOS VM, installed and configured identically - and as of yet, have been unsuccessful in re-creating the issue there. The only outstanding significant difference I can think of (outside of the server and user names used) is that it is largely a default HTTP configuration - where the problem instance has SSL and a minimal ProxyPass configuration running. I guess I'll try to clone these configurations over next to see if they make any difference. For completeness (from the VM where I am experiencing the issue): $ cat /etc/centos-release CentOS Linux release 7.2.1511 (Core) $ uname -srvmpio Linux 3.10.0-327.3.1.el7.x86_64 #1 SMP Wed Dec 9 14:09:15 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux - To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org