Re: [users@httpd] Apache sending Content-Length 0

2017-12-06 Thread Hemant Chaudhary
Hi,

I tired to solve this error but didn't get any hint why it is coming.
Can you please help to solve the error. Which .c file manipulates the data
to send the response.
What are the reason to send status 200 with content-length 0.

Thanks
Hemant

On Tue, Dec 5, 2017 at 2:32 PM, Hemant Chaudhary <
hemantdude.chaudh...@gmail.com> wrote:

> Hi,
> index.html is default apache html file.
> It works!
>
> I tried with cgi-script and other html files also, got the same error.
> Thanks
> Hemant
>
> On Tue, Dec 5, 2017 at 2:26 PM, Daniel  wrote:
>
>> Hello,
>>
>> What's inside the index.html? Care to do a "cat index.html"?
>>
>> 2017-12-05 7:14 GMT+01:00 Hemant Chaudhary > m>:
>> > Hi,
>> >
>> > When I am sending request from browser to client for basic
>> "index.html", I
>> > am getting error that
>> > " Err_EMPTY_RESPONSE " in browser.
>> >
>> > When I checked in the error log, found that response content length is
>> 0.
>> >
>> > [Tue Dec 05 05:28:15.499282 2017] [core:trace5] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\server\protocol.c(645):
>> [client
>> > 15.213.82.149:62584] Request received from client: GET / HTTP/1.1
>> > [Tue Dec 05 05:28:15.499445 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(420):
>> > [client 15.213.82.149:62584] Headers received from client:
>> > [Tue Dec 05 05:28:15.499458 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(424):
>> > [client 15.213.82.149:62584]   Host: 15.213.91.33:2345
>> > [Tue Dec 05 05:28:15.499466 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(424):
>> > [client 15.213.82.149:62584]   Connection: keep-alive
>> > [Tue Dec 05 05:28:15.499474 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(424):
>> > [client 15.213.82.149:62584]   Cache-Control: max-age=0
>> > [Tue Dec 05 05:28:15.499482 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(424):
>> > [client 15.213.82.149:62584]   Upgrade-Insecure-Requests: 1
>> > [Tue Dec 05 05:28:15.499490 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(424):
>> > [client 15.213.82.149:62584]   User-Agent: Mozilla/5.0 (Windows NT 6.1;
>> > Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113
>> > Safari/537.36
>> > [Tue Dec 05 05:28:15.499499 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(424):
>> > [client 15.213.82.149:62584]   Accept:
>> > text/html,application/xhtml+xml,application/xml;q=0.9,image/
>> webp,image/apng,*/*;q=0.8
>> > [Tue Dec 05 05:28:15.499508 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(424):
>> > [client 15.213.82.149:62584]   Accept-Encoding: gzip, deflate
>> > [Tue Dec 05 05:28:15.499516 2017] [http:trace4] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_request.c(424):
>> > [client 15.213.82.149:62584]   Accept-Language: en-US,en;q=0.8
>> > [Tue Dec 05 05:28:15.499690 2017] [authz_core:debug] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\aaa\mod_
>> authz_core.c(809):
>> > [client 15.213.82.149:62584] AH01626: authorization result of Require
>> all
>> > granted: granted
>> > [Tue Dec 05 05:28:15.499703 2017] [authz_core:debug] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\aaa\mod_
>> authz_core.c(809):
>> > [client 15.213.82.149:62584] AH01626: authorization result of
>> :
>> > granted
>> > [Tue Dec 05 05:28:15.499712 2017] [core:trace3] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\server\request.c(293):
>> [client
>> > 15.213.82.149:62584] request authorized without authentication by
>> > access_checker_ex hook: /
>> > [Tue Dec 05 05:28:15.500234 2017] [http:trace3] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_filters.c(1089):
>> > [client 15.213.82.149:62584] Response sent with status 200, headers:
>> > [Tue Dec 05 05:28:15.500248 2017] [http:trace5] [pid 150995199:tid
>> > 577157567797854212]
>> > C:\cygwin64\home\hemant\apache\httpd-2.4.25\modules\http\
>> http_filters.c(1096):
>> > [client 15.213.82.149:62584]   Date: Tue, 05 Dec 2017 05:28:15 GMT
>> > [Tue Dec 05 05:28:15.500256 

[users@httpd] RE: MOD_WCGI

2017-12-06 Thread Houser, Rick
Sounds like you have an unmaintained install that's going to be missing 
security patches, etc.  You may be better off getting a fresh install of Apache 
2.4 (and keeping up to date with security patches), and using the existing 
configuration as an initial template to update to the new syntax, then work on 
getting your python stuff working with similar new versions.


Rick Houser
Web Engineer

From: Richards, Toby [mailto:toby.richa...@slo.courts.ca.gov]
Sent: Tuesday, December 05, 2017 14:49
To: users@httpd.apache.org
Subject: [users@httpd] MOD_WCGI

EXTERNAL EMAIL


We used to have a fantastic webdev who has even contributed code to the Apache 
project. He retired years and years ago, and we didn't replace him. One of our 
intranet servers is Windows 2003, which cannot join a 2016 domain which we are 
upgrading to soon.

This guy would keep everything in two folders: C:\webdata for the site, and 
C:\webservices for Apache (2.2) and PHP (5.3.10), etc. Now, since this server 
is 32 bit I have had to attempt this on Windows 10x32 since I don't think that 
I'd be able to replicate his work. Also, I couldn't find a 64 bit version, and 
the 32 bit one won't run on a 64 bit server. What I did was simply copy the two 
folders above to the new computer. I think this should be fine because I doubt 
registry entries are involved.

When I try to start httpd.exe it complains that it cannot load mod_wscgi.so, 
and quits. From what I've read on Google, this module requires Python. I 
installed Python 2.7.3. That didn't fix the problem.
What should I try next? Do I need to tell Apache where python.exe is? I 
couldn't find anything in httpd.conf or php.ini for that.

Respectfully Submitted,
R. Toby Richards, Network Administrator
Superior Court of California in and for the County of San Luis Obispo
(805) 781-4150



Re: [users@httpd] if statement and ssl directives (apache 2.4)

2017-12-06 Thread Eric Covener
On Wed, Dec 6, 2017 at 4:10 AM, Adam Cecile  wrote:
> Hi,
>
> I'm trying to achieve a simplier vhost configuration using if statements but
> httpd refuses to start when I put SSL related directive inside the if block:
>
>
> 
>   ServerName www.comptoir-hardware.com
>   ServerAlias www.comptoir-hardware.com
>   ServerAlias new.comptoir-hardware.com
>   ServerAlias comptoir.co
>   ServerAlias www.comptoir.co
>
>   
> SSLEngine on
> SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt
> SSLCertificateKeyFile /etc/ssl/private/comptoir-hardware.com.key
> SSLCACertificateFile  /etc/ssl/certs/comptoir-hardware.com.ca
>   
>
>   
> RedirectMatch (.*) http://www.comptoir-hardware.com$1
>   
>
> 
>

 is evaluated per-request. You can't influence the handshake there.

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



Re: [users@httpd] if statement and ssl directives (apache 2.4)

2017-12-06 Thread Adam Cecile

Hi,

Well it depends who's editing the file. Some people are used to modify 
just the first block and ignore the following. You know what I mean ;-)
This is the reason why I'm trying to turn these Apache configuration 
"nginx way". Less blocks, less lines, less mistakes made.


Adam.

On 12/06/2017 10:56 AM, Gillis J. de Nijs wrote:

Hi Adam,

Simplest, in my opnion, is simplest to read and parse for a human.

What's wrong with:

## One VirtualHost that does everything

    ServerName www.comptoir-hardware.com 



    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt
    SSLCertificateKeyFile /etc/ssl/private/comptoir-hardware.com.key
    SSLCACertificateFile /etc/ssl/certs/comptoir-hardware.com.ca 



    DocumentRoot ...


## Redirect to main VirtualHost

    ServerName new.comptoir-hardware.com 


    ServerAlias comptoir-hardware.com 
    ServerAlias comptoir.co 
    ServerAlias www.comptoir.co 

    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt
    SSLCertificateKeyFile /etc/ssl/private/comptoir-hardware.com.key
    SSLCACertificateFile /etc/ssl/certs/comptoir-hardware.com.ca 



    Redirect / https://www.comptoir-hardware.com/


## Redirect http to https main VirtualHost

    ServerName www.comptoir-hardware.com 

    ServerAlias new.comptoir-hardware.com 


    ServerAlias comptoir-hardware.com 
    ServerAlias comptoir.co 
    ServerAlias www.comptoir.co 

    Redirect / https://www.comptoir-hardware.com/


Cheers,
Gillis

On Wed, Dec 6, 2017 at 10:10 AM, Adam Cecile > wrote:


Hi,

I'm trying to achieve a simplier vhost configuration using if
statements but httpd refuses to start when I put SSL related
directive inside the if block:



  ServerName www.comptoir-hardware.com

  ServerAlias www.comptoir-hardware.com

  ServerAlias new.comptoir-hardware.com

  ServerAlias comptoir.co 
  ServerAlias www.comptoir.co 

  
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt
    SSLCertificateKeyFile /etc/ssl/private/comptoir-hardware.com.key
    SSLCACertificateFile  /etc/ssl/certs/comptoir-hardware.com.ca

  

  
    RedirectMatch (.*) http://www.comptoir-hardware.com
$1
  




Can you confirm there's a way to do what I want ? Can you see
what's wrong ?

Thanks in advance,


Adam.


-
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org

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







Re: [users@httpd] if statement and ssl directives (apache 2.4)

2017-12-06 Thread Gillis J. de Nijs
Hi Adam,

Simplest, in my opnion, is simplest to read and parse for a human.

What's wrong with:

## One VirtualHost that does everything

ServerName www.comptoir-hardware.com

SSLEngine on
SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt
SSLCertificateKeyFile /etc/ssl/private/comptoir-hardware.com.key
SSLCACertificateFile  /etc/ssl/certs/comptoir-hardware.com.ca

DocumentRoot ...


## Redirect to main VirtualHost

ServerName new.comptoir-hardware.com
ServerAlias comptoir-hardware.com
ServerAlias comptoir.co
ServerAlias www.comptoir.co

SSLEngine on
SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt
SSLCertificateKeyFile /etc/ssl/private/comptoir-hardware.com.key
SSLCACertificateFile  /etc/ssl/certs/comptoir-hardware.com.ca

Redirect / https://www.comptoir-hardware.com/


## Redirect http to https main VirtualHost

ServerName www.comptoir-hardware.com
ServerAlias new.comptoir-hardware.com
ServerAlias comptoir-hardware.com
ServerAlias comptoir.co
ServerAlias www.comptoir.co

Redirect / https://www.comptoir-hardware.com/


Cheers,
Gillis

On Wed, Dec 6, 2017 at 10:10 AM, Adam Cecile  wrote:

> Hi,
>
> I'm trying to achieve a simplier vhost configuration using if statements
> but httpd refuses to start when I put SSL related directive inside the if
> block:
>
>
> 
>   ServerName www.comptoir-hardware.com
>   ServerAlias www.comptoir-hardware.com
>   ServerAlias new.comptoir-hardware.com
>   ServerAlias comptoir.co
>   ServerAlias www.comptoir.co
>
>   
> SSLEngine on
> SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt
> SSLCertificateKeyFile /etc/ssl/private/comptoir-hardware.com.key
> SSLCACertificateFile  /etc/ssl/certs/comptoir-hardware.com.ca
>   
>
>   
> RedirectMatch (.*) http://www.comptoir-hardware.com$1
>   
>
> 
>
>
> Can you confirm there's a way to do what I want ? Can you see what's wrong
> ?
>
> Thanks in advance,
>
>
> Adam.
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


[users@httpd] if statement and ssl directives (apache 2.4)

2017-12-06 Thread Adam Cecile

Hi,

I'm trying to achieve a simplier vhost configuration using if statements 
but httpd refuses to start when I put SSL related directive inside the 
if block:




  ServerName www.comptoir-hardware.com
  ServerAlias www.comptoir-hardware.com
  ServerAlias new.comptoir-hardware.com
  ServerAlias comptoir.co
  ServerAlias www.comptoir.co

  
    SSLEngine on
    SSLCertificateFile /etc/ssl/certs/comptoir-hardware.com.crt
    SSLCertificateKeyFile /etc/ssl/private/comptoir-hardware.com.key
    SSLCACertificateFile  /etc/ssl/certs/comptoir-hardware.com.ca
  

  
    RedirectMatch (.*) http://www.comptoir-hardware.com$1
  




Can you confirm there's a way to do what I want ? Can you see what's wrong ?

Thanks in advance,


Adam.


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