Re: [users@httpd] apache 2.4 handling of subdomains with unallowed characters

2017-01-23 Thread Hajo Locke
Hello, Am 24.01.2017 um 07:01 schrieb Nick Kew: On Mon, 2017-01-23 at 21:26 +, Darryl Philip Baker wrote: DNS doesn’t allow underscore in host and domain names so how a URL with an underscore would have ever worked is beyond me. Yeah, but is it the webserver's role to enforce that? Old an

Re: [users@httpd] apache 2.4 handling of subdomains with unallowed characters

2017-01-23 Thread Nick Kew
On Mon, 2017-01-23 at 21:26 +, Darryl Philip Baker wrote: > DNS doesn’t allow underscore in host and domain names so how a URL > with an underscore would have ever worked is beyond me. Yeah, but is it the webserver's role to enforce that? Old answer: be liberal in what you accept. New answer:

RE: [users@httpd] Configuring redirects httpd behind a TLS-terminating proxy

2017-01-23 Thread Alexandru Duzsardi
Try this in your non-ssl virtualhost RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} More about mod_ssl variables http://httpd.apache.org/docs/2.2/mod/mod_ssl.html#envvars -Original Message- From: Christopher Schultz [mailto:ch...@christophe

Re: [users@httpd] Piping logs to a java process : creates multiple processes

2017-01-23 Thread Milind Vaidya
Thanks for prompt reply Eric. Adding relevant code resolved, the issue of 2 processes at the beginning. Let me wait for logrotate to kick in and see over few hours how it behaves. On Mon, Jan 23, 2017 at 4:41 PM, Eric Covener wrote: > On Mon, Jan 23, 2017 at 7:36 PM, Milind Vaidya wrote: > >

Re: [users@httpd] Piping logs to a java process : creates multiple processes

2017-01-23 Thread Eric Covener
On Mon, Jan 23, 2017 at 7:36 PM, Milind Vaidya wrote: > When httpd is started it spawns 2 processes and adds one every one hour, > keeping all alive Your java program needs to exit when stdin returns EOF. -- Eric Covener cove...@gmail.com --

[users@httpd] Piping logs to a java process : creates multiple processes

2017-01-23 Thread Milind Vaidya
> > I am writing messages to error_log file as well as sending to std out. > > The setting looks like > > > ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | java -cp > producer.jar stdin.producer.StdInProducer /CustomProducer/config.json >> > /producer_init.log 2>&1"` > > When httpd is st

[users@httpd] Piping creates process per hour

2017-01-23 Thread Milind Vaidya
I am writing messages to error_log file as well as sending to std out. The setting looks like ErrorLog "| /usr/bin/tee -a /var/log/httpd/error_log | java -cp producer.jar stdin.producer.StdInProducer /CustomProducer/config.json >> /producer_init.log 2>&1"`

Re: [users@httpd] Guidance on Fail Over for Load Balancers

2017-01-23 Thread Yehuda Katz
You could set up two HTTPD servers with a shared IP address (using VRRP with keepalived). In that case, I highly recommend using a configuration management tool (for example, puppet or chef) to make sure both systems have the same settings. If the two load balancers need to share session informati

[users@httpd] Guidance on Fail Over for Load Balancers

2017-01-23 Thread Michael Duffy
I did search the archives of this list before posting. We are going to use the Apache HTTP Server as a load balancer for a cluster of Tomcat servers. We do not want the load balancer to be a single point of failure. Is it possible to cluster or set up fail over for the load balancers? Any guida

[users@httpd] Configuring redirects httpd behind a TLS-terminating proxy

2017-01-23 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 All, I've got an EC2 instance behind a load balancer where TLS is being terminated. I've arranged for two separate httpd (2.4.25) VirtualHosts: one for the secure connections (proxied from the lb) and another for the non-secure connections. I have

RE: [users@httpd] apache 2.4 handling of subdomains with unallowed characters

2017-01-23 Thread Darryl Philip Baker
DNS doesn’t allow underscore in host and domain names so how a URL with an underscore would have ever worked is beyond me. Darryl Baker Sr. System Administrator Northwestern | Information Technology www.it.northwestern.edu

Re: [users@httpd] apache 2.4 handling of subdomains with unallowed characters

2017-01-23 Thread Erik Dobák
also i dont recall to see any URL with _ before. is this spam? E On 23 January 2017 at 22:06, Erik Dobák wrote: > i don't see any underscores here: > > ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) > > https://tools.ietf.org/html/rfc3986 > > > On 23 January 2017 at 11:06, Hajo Locke wrote: > >> He

Re: [users@httpd] apache 2.4 handling of subdomains with unallowed characters

2017-01-23 Thread Erik Dobák
i don't see any underscores here: ALPHA *( ALPHA / DIGIT / "+" / "-" / "." ) https://tools.ietf.org/html/rfc3986 On 23 January 2017 at 11:06, Hajo Locke wrote: > Hello list, > > i have some subdomains with unallowed characters, in my case the > underscore. > > In apache 2.2 subdomains like th

Re: [users@httpd] https://www.berkshirefurniture.com Issue on .htaccess rule.

2017-01-23 Thread Yann Ylavic
Hi, On Mon, Jan 23, 2017 at 11:20 AM, Rajib Karmakar wrote: > > Yes i active access logs, now which date i see the log. > > Problem Statement : Few Products redirects to Cart page. > > Cart Page URL : https://www.berkshirefurniture.com/cart/ > Cart Page htaccess redirects rule : RewriteRule ^car

Re: [users@httpd] https://www.berkshirefurniture.com Issue on .htaccess rule.

2017-01-23 Thread Rajib Karmakar
Hi Katz, Yes i active access logs, now which date i see the log. Problem Statement : Few Products redirects to Cart page. Cart Page URL : https://www.berkshirefurniture.com/cart/ Cart Page htaccess redirects rule : RewriteRule ^cart(.*)$ cart.php Products: 1. Click on : https://www.berkshirefu

[users@httpd] apache 2.4 handling of subdomains with unallowed characters

2017-01-23 Thread Hajo Locke
Hello list, i have some subdomains with unallowed characters, in my case the underscore. In apache 2.2 subdomains like this worked: sub_domain.domain.com In apache 2.4 this produces a 400 servererror (bad request) It seems that apache 2.4's handling of allowed/not allowed chars is more strict.