[users@httpd] Server replication

2016-04-17 Thread Darryl Philip Baker
I the system administrator for HTTP servers in a higher volume environment. We 
have three Linux hosts serving the many virtual hosts that make up our sites. 
The only HTTPD configuration difference between the three servers is the local 
machine's host name and IP address. I would like to have the HTTPD 
configuration be identical except for one file with the local settings, then I 
can just include that file. I would like to avoid having a large 
"" block if possible. I'm sure other people are in the 
same situation and I would like to find out what works for you.


When I search for answers I get answers to running multiple sites on a host and 
multiple instances of Apache HTTPD on a single host, neither of theses are my 
problem obviously.


Darryl Baker
Sr. System Administrator
Distributed Application Platform Services (DAPS)
Project Management Office and Enabling Technologies (PMOET)
Northwestern | Information Technology (Formerly NUIT)
1800 Sherman Ave., Suite 600
Evanston, IL  60201-3715
(847) 467-6674
www.it.northwestern.edu


Re: [users@httpd] Server replication

2016-04-17 Thread Yehuda Katz
A configuration management tool (like Puppet, for example) may be a better
fit for what you are looking for.
I have implemented this solution at a state university - email me off the
list if you want specifics.

That said, can you be more specific about what you are trying to do?
Are you trying to include a different file depending on the hostname of the
machine?
Can you always have that config file named local.conf (or similar) and
include it everywhere else?
Alternatively, you might be able to pass the name you want on the startup
command (-D) and use it in the config -
http://httpd.apache.org/docs/2.4/mod/core.html#define.

- Y

On Sun, Apr 17, 2016 at 3:09 PM, Darryl Philip Baker <
darryl.ba...@northwestern.edu> wrote:

> I the system administrator for HTTP servers in a higher volume
> environment. We have three Linux hosts serving the many virtual hosts that
> make up our sites. The only HTTPD configuration difference between the
> three servers is the local machine's host name and IP address. I would like
> to have the HTTPD configuration be identical except for one file with the
> local settings, then I can just include that file. I would like to avoid
> having a large "" block if possible. I'm sure other
> people are in the same situation and I would like to find out what works
> for you.
>
>
> When I search for answers I get answers to running multiple sites on a
> host and multiple instances of Apache HTTPD on a single host, neither of
> theses are my problem obviously.
>
>
> *Darryl Baker*
> *Sr. System Administrator*
> Distributed Application Platform Services (DAPS)
> Project Management Office and Enabling Technologies (PMOET)
> *Northwestern* | Information Technology (Formerly NUIT)
> 1800 Sherman Ave., Suite 600
> Evanston, IL  60201-3715
> *(847) 467-6674 <%28847%29%20467-6674>*
> www.it.northwestern.edu
>


[users@httpd] Re: Server replication

2016-04-17 Thread Christophe JAILLET

Hi,

If you are running on 2.4.x, have a look at mod_macro.

Best regards,
CJ

Le 17/04/2016 21:09, Darryl Philip Baker a écrit :


I the system administrator for HTTP servers in a higher volume 
environment. We have three Linux hosts serving the many virtual hosts 
that make up our sites. The only HTTPD configuration difference 
between the three servers is the local machine's host name and IP 
address. I would like to have the HTTPD configuration be identical 
except for one file with the local settings, then I can just include 
that file. I would like to avoid having a large 
"" block if possible. I'm sure other people are 
in the same situation and I would like to find out what works for you.



When I search for answers I get answers to running multiple sites on a 
host and multiple instances of Apache HTTPD on a single host, neither 
of theses are my problem obviously.



*Darryl Baker*
*Sr. System Administrator*
Distributed Application Platform Services (DAPS)
Project Management Office and Enabling Technologies (PMOET)
*Northwestern* | Information Technology (Formerly NUIT)
1800 Sherman Ave., Suite 600
Evanston, IL  60201-3715
*(847) 467-6674*
www.it.northwestern.edu




[users@httpd] Configuration H20 server with Apache httpd in linux

2016-04-17 Thread syan...@intraedge.com
Greetings!

H20 runs on some range of port numbers (54321 to 54341) and different IP 
address, all those IP address are firewall restricted to the users, If I can 
configure the H20 with Apache httpd, then users can access the H20 through  
Apache httpd 80 port.

Can anyone suggest me the how to configure H20 server with Apache httpd in 
linux.


Thanks.

Regards,
Satya.


Disclaimer: This communication (including any accompanying documents) is 
confidential and privileged.  It is for the exclusive use of the addressee.  If 
you are not the addressee please note that any distribution, copying or use of 
this communication or the information in it is prohibited.  If you have 
received this communication in error, please destroy it and contact us at 
secur...@intraedge.com immediately.
Any communication made by email is not secured and does not constitute an offer 
or acceptance  and does not constitute as a binding or legal contract.
Email communications are of ephemeral nature.


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Apache keeping open deleted files

2016-04-17 Thread David Cunningham
Hi,

While reviewing filesystem usage we noticed lots of deleted files still
open by Apache, as reported by lsof. Some example lines are below.

Can anyone advise why Apache is keeping these files open, and if there's
anything we can do about it? I have verified that the process numbers
listed are still existing processes.

The server is running Apache 2.4.7-1ubuntu4.8 on Ubuntu 14.04 server,
64bit. Thank you in advance.

/usr/sbin 13262 root   23w  REG
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 13262 root   24w  REG
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 apacheuser   23w  REG
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 apacheuser   24w  REG
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 22671   apacheuser   23w  REG
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 22671   apacheuser   24w  REG
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 22672   apacheuser   23w  REG
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 22672   apacheuser   24w  REG
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 22673   apacheuser   23w  REG
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 22673   apacheuser   24w  REG
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 22674   apacheuser   23w  REG
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 22674   apacheuser   24w  REG
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)


-- 
David Cunningham, Voisonics
http://voisonics.com/
USA: +1 213 221 1092
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019


[users@httpd] Apache and Javascript

2016-04-17 Thread Brandon L. Wisenburg
Hi All. 
Is there anything special that needs done to Apache to get it to serve 
javascript? 


Re: [users@httpd] Apache keeping open deleted files

2016-04-17 Thread Marat Khalili

Hello David,

It is a normal practice in Linux to delete temporary files immediately 
after creating them. These files will still work for the process that 
keeps them open, and will automatically disappear as soon as the process 
ends.


I typed lsof /run/lock on a couple of my Ubuntu machines with Apache 
installed, and the output was similar to yours.


--

With Best Regards,
Marat Khalili

On 18/04/16 08:25, David Cunningham wrote:

Hi,

While reviewing filesystem usage we noticed lots of deleted files 
still open by Apache, as reported by lsof. Some example lines are below.


Can anyone advise why Apache is keeping these files open, and if 
there's anything we can do about it? I have verified that the process 
numbers listed are still existing processes.


The server is running Apache 2.4.7-1ubuntu4.8 on Ubuntu 14.04 server, 
64bit. Thank you in advance.


/usr/sbin 13262 root   23w REG   
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 13262 root   24w REG   
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 apacheuser   23w REG   
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 apacheuser   24w REG   
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 22671   apacheuser   23w REG   
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 22671   apacheuser   24w REG   
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 22672   apacheuser   23w REG   
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 22672   apacheuser   24w REG   
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 22673   apacheuser   23w REG   
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 22673   apacheuser   24w REG   
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)
/usr/sbin 22669 22674   apacheuser   23w REG   
0,19   0  110619773 /run/lock/apache2/rewrite-map.13262 (deleted)
/usr/sbin 22669 22674   apacheuser   24w REG   
0,19   0  105844737 /run/lock/apache2/ssl-cache.13261 (deleted)



--
David Cunningham, Voisonics
http://voisonics.com/
USA: +1 213 221 1092
UK: +44 (0) 20 3298 1642
Australia: +61 (0) 2 8063 9019