[users@httpd] RewriteRule

2012-01-18 Thread Roman Gelfand
I am trying to proxy off requests from wan url
https://external.mydomain.com/sipxconfig to an internal site
https://internal.mydomain.com:8443/sipxconfig.

This what I attempted to do

RewriteRule ^https://external.mydomain.com:8443$
https://external.mydomain.com/ [R]
RewriteRule ^https://internal.mydomain.com:8443$
https://external.mydomain.com/ [R]
RewriteRule /sipxconfig$ https://external.mydomain.com/sipxconfig/ [R]
 
 ProxyPass https://internal.mydomain.com:8443/sipxconfig/
 ProxyPassReverse https://internal.mydomain.com:8443/sipxconfig/
 

There appears to be one more outstanding problem.  That is, the tag
below doesn't get rewritten.


https://internal.mydomain.com:8443/sipxconfig/"; />

Any help is appreciated.

Thanks in advance

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] mod_proxy_html Issue

2012-01-23 Thread Roman Gelfand
I am using this module to rewrite the contents of html documents.  It
appears that it strips   which causes me all kinds of grief with
IE.  Looking, briefly, at mod_proxy_html.c, I couldn't find reference
to  .  Unless, it is a setting in mod_proxy_html config file?

Any suggestions are appreciated

Thanks in advance

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] mod_proxy_html Issue

2012-01-23 Thread Roman Gelfand
I think I have the latest version as I picked it up from the site.

Actually, after doing a little digging, I found that mod_proxy_html by
way of mod_xml2enc parses the html and, ultimately, puts it back
together again.  At the time of parsing, it replaces   with 0xc2
0xca or something like that.

In the mod_proxy_html.c, you have this code.

static void pcharacters(void* ctxt, const xmlChar *uchars, int length) {
  const char* chars = (const char*) uchars;
  saxctxt* ctx = (saxctxt*) ctxt ;
  int i ;
  int begin ;
  for ( begin=i=0; if->next, ctx->bb, "&") ; break ;
  case '<' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, "<") ; break ;
  case '>' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, ">") ; break ;
  case '"' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, """) ; break ;
  default : break ;
}
  }
  FLUSH ;
}

I suppose I need to add a line for  , but it has been a long time
since I coded in c and I don't know how to handle utf-8 characters.
If you could help I would appreciate it.

Thanks,

On Mon, Jan 23, 2012 at 6:42 PM, Igor Cicimov  wrote:
> Which version? If it is the newest one have you loaded mod_xml2enc too?
>
> Did you look for answer on the module web site?
> http://apache.webthing.com/mod_proxy_html/config.html
>
> Igor
>
> On Tue, Jan 24, 2012 at 10:29 AM, Roman Gelfand  wrote:
>>
>> I am using this module to rewrite the contents of html documents.  It
>> appears that it strips   which causes me all kinds of grief with
>> IE.  Looking, briefly, at mod_proxy_html.c, I couldn't find reference
>> to  .  Unless, it is a setting in mod_proxy_html config file?
>>
>> Any suggestions are appreciated
>>
>> Thanks in advance
>>
>> -
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



Re: [users@httpd] mod_proxy_html Issue

2012-01-24 Thread Roman Gelfand
 "word1 word2" becomes "word1 word2" is what happens.

Perhaps, the libxml2 that ships with debian lenny, os I am using, is outdated.

Is there a way, other than mod_proxy_html, to get rid of the base tag.

Thanks,

On Mon, Jan 23, 2012 at 8:57 PM, Igor Cicimov  wrote:
> Sorry mate not a C person my self :) From the look of it that function puts
> the non HTML characters like <,&,>"  into HTML format. Since   is
> already HTML formatted this function shouldn't affect it at all. But as I
> said I'm not the right person to comment on this hopefully someone alse can
> help.
>
> I think it would be good though if you give an example what exactly is
> happening after parsing like "word1 word2" becomes "word1 word2" or
> something else...
>
> Cheers,
> Igor
>
>
> On Tue, Jan 24, 2012 at 12:40 PM, Roman Gelfand  wrote:
>>
>> I think I have the latest version as I picked it up from the site.
>>
>> Actually, after doing a little digging, I found that mod_proxy_html by
>> way of mod_xml2enc parses the html and, ultimately, puts it back
>> together again.  At the time of parsing, it replaces   with 0xc2
>> 0xca or something like that.
>>
>> In the mod_proxy_html.c, you have this code.
>>
>> static void pcharacters(void* ctxt, const xmlChar *uchars, int length) {
>>  const char* chars = (const char*) uchars;
>>  saxctxt* ctx = (saxctxt*) ctxt ;
>>  int i ;
>>  int begin ;
>>  for ( begin=i=0; i>    switch (chars[i]) {
>>      case '&' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, "&") ; break ;
>>      case '<' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, "<") ; break ;
>>      case '>' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, ">") ; break ;
>>      case '"' : FLUSH ; ap_fputs(ctx->f->next, ctx->bb, """) ; break
>> ;
>>      default : break ;
>>    }
>>  }
>>  FLUSH ;
>> }
>>
>> I suppose I need to add a line for  , but it has been a long time
>> since I coded in c and I don't know how to handle utf-8 characters.
>> If you could help I would appreciate it.
>>
>> Thanks,
>>
>> On Mon, Jan 23, 2012 at 6:42 PM, Igor Cicimov  wrote:
>> > Which version? If it is the newest one have you loaded mod_xml2enc too?
>> >
>> > Did you look for answer on the module web site?
>> > http://apache.webthing.com/mod_proxy_html/config.html
>> >
>> > Igor
>> >
>> > On Tue, Jan 24, 2012 at 10:29 AM, Roman Gelfand 
>> > wrote:
>> >>
>> >> I am using this module to rewrite the contents of html documents.  It
>> >> appears that it strips   which causes me all kinds of grief with
>> >> IE.  Looking, briefly, at mod_proxy_html.c, I couldn't find reference
>> >> to  .  Unless, it is a setting in mod_proxy_html config file?
>> >>
>> >> Any suggestions are appreciated
>> >>
>> >> Thanks in advance
>> >>
>> >> -
>> >> The official User-To-User support forum of the Apache HTTP Server
>> >> Project.
>> >> See http://httpd.apache.org/userslist.html> for more info.
>> >> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> >>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> >> For additional commands, e-mail: users-h...@httpd.apache.org
>> >>
>> >
>>
>> -
>> The official User-To-User support forum of the Apache HTTP Server Project.
>> See http://httpd.apache.org/userslist.html> for more info.
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>>   "   from the digest: users-digest-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>

-
The official User-To-User support forum of the Apache HTTP Server Project.
See http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org



[users@httpd] Possible DOS Attack

2016-05-20 Thread Roman Gelfand
In the last 2 days we have received roughly 1milion of the following
requests.  Just to confirm, is this a DOS attack?

191.96.249.52 - - [20/May/2016:18:19:22 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:22 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:23 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:23 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:23 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:23 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:23 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:23 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:24 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:25 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:25 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:25 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:25 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:25 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:25 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:26 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:26 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:27 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:27 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:27 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:27 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:27 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:27 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:27 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:28 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:28 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:29 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:29 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:29 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:29 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:30 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:30 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:30 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:31 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7.0; Windows NT 6.0)"
191.96.249.52 - - [20/May/2016:18:19:31 -0400] "POST /xmlrpc.php HTTP/1.0"
500 251 "-" "Mozilla/4.0 (compatible: MSIE 7

[users@httpd] php curl

2017-02-23 Thread Roman Gelfand
I am executing successfully the following code using php line mode and it
returns a stream.  However, when running the same code as part of web page,
it appears that get request never gets executed.  Why?  any help is
appreciated.

$apikey = '73f1ad78334ea3e8dedfb8f568d8537f';
$username='auser';
$dealid=1;
$apiurl='http://apserveri02:8080/rest/default/qadm/v1/';


$ch = curl_init();

$headr = array();
$headr[] = 'Accept: application/json';
$headr[] = 'Content-Type: application/json';
$headr[] = 'Authorization '.$apikey.':1';

curl_setopt($ch, CURLOPT_HTTPHEADER,$headr);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_URL,
$apiurl."Rsnapshot?filter=dealid=$dealid");
$content = curl_exec($ch);
echo $content;
exit;

-- 
Thanks,
R. Gelfand


Re: [users@httpd] php curl

2017-02-24 Thread Roman Gelfand
How do you configure Apache to execute scripts?

In the least, it looks like curl get request doesn't get executed.

On Fri, Feb 24, 2017, 3:11 AM Marat Khalili  wrote:

> it appears that get request never gets executed

You didn't write what happens. Does your PHP code gets executed at all?
One common error is not configuring Apache to recognize scripts in the
first place.

--

With Best Regards,
Marat Khalili


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

-- 
Thanks,
R. Gelfand


Re: [users@httpd] php curl

2017-02-24 Thread Roman Gelfand
correction... I am getting Curl error: Failed to connect to : Permission
denied


On Fri, Feb 24, 2017 at 5:30 AM Roman Gelfand  wrote:

> How do you configure Apache to execute scripts?
>
> In the least, it looks like curl get request doesn't get executed.
>
> On Fri, Feb 24, 2017, 3:11 AM Marat Khalili  wrote:
>
> > it appears that get request never gets executed
>
> You didn't write what happens. Does your PHP code gets executed at all?
> One common error is not configuring Apache to recognize scripts in the
> first place.
>
> --
>
> With Best Regards,
> Marat Khalili
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
> --
> Thanks,
> R. Gelfand
>
-- 
Thanks,
R. Gelfand


Re: [users@httpd] php curl

2017-02-24 Thread Roman Gelfand
This is fixed.  I had to disable selinux on the web server.

On Fri, Feb 24, 2017 at 8:38 AM Roman Gelfand  wrote:

> correction... I am getting Curl error: Failed to connect to : Permission
> denied
>
>
> On Fri, Feb 24, 2017 at 5:30 AM Roman Gelfand  wrote:
>
> How do you configure Apache to execute scripts?
>
> In the least, it looks like curl get request doesn't get executed.
>
> On Fri, Feb 24, 2017, 3:11 AM Marat Khalili  wrote:
>
> > it appears that get request never gets executed
>
> You didn't write what happens. Does your PHP code gets executed at all?
> One common error is not configuring Apache to recognize scripts in the
> first place.
>
> --
>
> With Best Regards,
> Marat Khalili
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
> --
> Thanks,
> R. Gelfand
>
> --
> Thanks,
> R. Gelfand
>
-- 
Thanks,
R. Gelfand


[users@httpd] Web Site Testing

2013-12-11 Thread Roman Gelfand
Is there an open source service tool that checks, over wan,
availability/collects statistics/notifies/etc... of a web site?

Thanks in advance

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



Re: [users@httpd] Web Site Testing

2013-12-11 Thread Roman Gelfand
I think I was misunderstood.  I am looking for a web site monitoring
software that periodically downloads a page from that site and records
statistics like how many times it got 200, 404, etc...

On Wed, Dec 11, 2013 at 9:59 PM, John Hudak  wrote:
> Sorry, I don't know of one that does it over a WAN..but, when you find one,
> might wanna pass it along to the folks at CGI Federal...  ;)
>
>
>
>
> On Wed, Dec 11, 2013 at 7:46 PM, Roman Gelfand  wrote:
>>
>> Is there an open source service tool that checks, over wan,
>> availability/collects statistics/notifies/etc... of a web site?
>>
>> Thanks in advance
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
>> For additional commands, e-mail: users-h...@httpd.apache.org
>>
>

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



[users@httpd] File doesn't exist

2014-02-06 Thread Roman Gelfand
 I am not sure why I am getting this error.  It actually brings up the
site but stylesheet is not applied.

[Thu Feb 06 20:17:57 2014] [error] [client 192.168.0.209] File does
not exist: /var/www/dspam/usr, referer:
http://dspam.mail.tld/dspam.cgi



my site config


SuexecUserGroup dspam dspam
Addhandler cgi-script .cgi
Options +ExecCGI -Indexes

Alias / "/var/www/dspam/"

Addhandler cgi-script .cgi
Options +ExecCGI -Indexes
DirectoryIndex dspam.cgi

AuthType Basic
AuthName "DSPAM Control Center"
AuthUserFile /etc/dspam/webfrontend.htpasswd
Require valid-user

AllowOverride None



Thanks in advance

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



[users@httpd] php5 module

2014-02-18 Thread Roman Gelfand
I just built apache 2.4.7 from source.  I would like to build php5
module.  Where can I download just the php5 module source from?  I
tried to download from php site, but all they have is complete source
download.


Thanks in advance

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



[users@httpd] suexec policy violation

2014-02-20 Thread Roman Gelfand
I am trying to setup forms/ldap based authentication for an existing
site.  I am getting an error with suexec.  Not sure what is causing
it.   Below, are log and configuration.

Log

[Thu Feb 20 10:47:35.867218 2014] [core:notice] [pid 26384] AH00094:
Command line: '/usr/sbin/apache2'
[Thu Feb 20 10:47:51.311666 2014] [authz_core:debug] [pid 26392]
mod_authz_core.c(802): [client 192.168.0.209:55675] AH01626:
authorization result of Require valid-user : denied (no authenticated
user yet)
[Thu Feb 20 10:47:51.311744 2014] [authz_core:debug] [pid 26392]
mod_authz_core.c(802): [client 192.168.0.209:55675] AH01626:
authorization result of : denied (no authenticated user
yet)
[Thu Feb 20 10:47:51.333617 2014] [authnz_ldap:debug] [pid 26392]
mod_authnz_ldap.c(501): [client 192.168.0.209:55675] AH01691:
auth_ldap authenticate: using URL
ldap://192.168.0.22:389/ou=People,dc=doman,dc=local?mail?sub
[Thu Feb 20 10:47:51.334139 2014] [ldap:debug] [pid 26392]
util_ldap.c(372): AH01278: LDAP: Setting referrals to On.
[Thu Feb 20 10:47:51.339220 2014] [authnz_ldap:debug] [pid 26392]
mod_authnz_ldap.c(593): [client 192.168.0.209:55675] AH01697:
auth_ldap authenticate: accepting user@domain.local
[Thu Feb 20 10:47:51.339335 2014] [authz_core:debug] [pid 26392]
mod_authz_core.c(802): [client 192.168.0.209:55675] AH01626:
authorization result of Require valid-user : granted
[Thu Feb 20 10:47:51.339426 2014] [authz_core:debug] [pid 26392]
mod_authz_core.c(802): [client 192.168.0.209:55675] AH01626:
authorization result of : granted
[Thu Feb 20 10:47:51.342397 2014] [cgi:error] [pid 26392] [client
192.168.0.209:55675] AH01215: suexec policy violation: see suexec log
for more details
[Thu Feb 20 10:47:51.342765 2014] [cgi:error] [pid 26392] [client
192.168.0.209:55675] End of script output before headers: dspam.cgi
[Thu Feb 20 10:47:51.364314 2014] [core:debug] [pid 26392]
util_cookies.c(59): [client 192.168.0.209:55675] AH7: ap_cookie:
user 'user@domain.local' set cookie:
'session=5NdUE0kHQSGYA+ui0Q3tfOQ9Xe6nEXQIi2bINcDzE5QGKSFto6pcNFFvQFZK4yW+fz9zCqCgK02ibacwHPH+84uyEbqwwuq2h2ZzgD/DvJU9s4g/NUUk13SfoVQdFwyDoFqFxjY2CJYKTUP6dJ9AfoWDMD/EN4uYPQ7/+TzccJ0=;path=/'


Directory /var/www/dspam Permissions

drwxr-xr-x 2 dspam dspam  4096 Feb 20 10:10 .
drwxr-xr-x 3 root  root   4096 Feb 19 19:34 ..
-rwxr-xr-x 1 dspam dspam 29602 Apr  4  2013 admin.cgi
-rwxr-xr-x 1 dspam dspam  5853 Apr  4  2013 admingraph.cgi
-rwxr-xr-x 1 dspam dspam   562 Feb 11 15:47 authenticate.php
-rwxr-xr-x 1 dspam dspam  3179 Feb  7 10:17 base.css
-rwxr-xr-x 1 dspam dspam  7137 Feb  7 10:17 configure.pl
-rw-r--r-- 1 dspam dspam  1394 Feb  6 18:52 default.prefs
-rw-r--r-- 1 dspam dspam  4792 Feb  7 10:17 dspam-logo-small.gif
-rwxr-xr-x 1 dspam dspam 55543 Feb 11 13:07 dspam.cgi
-rw-r--r-- 1 dspam dspam   822 Feb  7 10:17 dspam.js
-rw-r--r-- 1 dspam dspam 15774 Feb  6 18:52 favicon.ico
-rwxr-xr-x 1 dspam dspam  4655 Apr  4  2013 graph.cgi
-rwxr-xr-x 1 dspam dspam 61390 Feb  6 18:52 htmlize.pl
-rwxr-xr-x 1 dspam dspam20 Feb 19 19:01 info.php
-rw-r--r-- 1 root  root416 Feb 11 17:16 login.html
-rw-r--r-- 1 root  root337 Feb 11 15:37 loginb.html
-rwxr-xr-x 1 dspam dspam   718 Feb  6 18:52 logout.cgi
-rwxr-xr-x 1 dspam dspam  1192 Feb 20 10:05 logout.php
-rwxr-xr-x 1 dspam dspam   245 Feb 11 13:34 logout2.php
-rw-r--r-- 1 dspam dspam 17168 Feb  6 18:52 rgb.txt
-rw-r--r-- 1 dspam dspam   589 Feb  6 18:52 rtl.css



site config





LogLevel debug
SuexecUserGroup dspam dspam
Addhandler cgi-script .cgi
Options +ExecCGI -Indexes

DocumentRoot /var/www/dspam

ErrorDocument 401 /login.html

Session On
SessionCookieName session path=/
SessionCryptoPassphrase secret


AuthFormProvider ldap
AuthType form
AuthName "DSPAM Authentication"
AuthFormLoginRequiredLocation http://192.168.0.36/login.html
AuthLDAPURL
"ldap://192.168.0.22:389/ou=People,dc=domain,dc=local?mail?sub";
AuthLDAPBindDN "CN=LDAP Lookup,OU=Service
Accounts,OU=People,DC=domain,DC=local"
AuthLDAPBindPassword "password"
Require valid-user



Order allow,Deny
Allow from all
require all granted



SetHandler form-logout-handler
AuthName "DSPAM Authentication"
AuthFormLogoutLocation http://192.168.0.36/login.html



  SetHandler form-login-handler
  AuthType form
  AuthName "DSPAM Authentication"
  AuthFormProvider ldap
  AuthFormLoginRequiredLocation http://192.168.0.36/login.html


#ErrorLog logs/DSPAMError_log
#CustomLog logs/DSPAMAccess_log common


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



[users@httpd] Re: suexec policy violation

2014-02-20 Thread Roman Gelfand
Actually, it appears this is the source of the problem

[2014-02-20 12:00:19]: user mismatch (www-data instead of www)

not sure what it means

On Thu, Feb 20, 2014 at 11:48 AM, Roman Gelfand  wrote:
> I am trying to setup forms/ldap based authentication for an existing
> site.  I am getting an error with suexec.  Not sure what is causing
> it.   Below, are log and configuration.
>
> Log
>
> [Thu Feb 20 10:47:35.867218 2014] [core:notice] [pid 26384] AH00094:
> Command line: '/usr/sbin/apache2'
> [Thu Feb 20 10:47:51.311666 2014] [authz_core:debug] [pid 26392]
> mod_authz_core.c(802): [client 192.168.0.209:55675] AH01626:
> authorization result of Require valid-user : denied (no authenticated
> user yet)
> [Thu Feb 20 10:47:51.311744 2014] [authz_core:debug] [pid 26392]
> mod_authz_core.c(802): [client 192.168.0.209:55675] AH01626:
> authorization result of : denied (no authenticated user
> yet)
> [Thu Feb 20 10:47:51.333617 2014] [authnz_ldap:debug] [pid 26392]
> mod_authnz_ldap.c(501): [client 192.168.0.209:55675] AH01691:
> auth_ldap authenticate: using URL
> ldap://192.168.0.22:389/ou=People,dc=doman,dc=local?mail?sub
> [Thu Feb 20 10:47:51.334139 2014] [ldap:debug] [pid 26392]
> util_ldap.c(372): AH01278: LDAP: Setting referrals to On.
> [Thu Feb 20 10:47:51.339220 2014] [authnz_ldap:debug] [pid 26392]
> mod_authnz_ldap.c(593): [client 192.168.0.209:55675] AH01697:
> auth_ldap authenticate: accepting user@domain.local
> [Thu Feb 20 10:47:51.339335 2014] [authz_core:debug] [pid 26392]
> mod_authz_core.c(802): [client 192.168.0.209:55675] AH01626:
> authorization result of Require valid-user : granted
> [Thu Feb 20 10:47:51.339426 2014] [authz_core:debug] [pid 26392]
> mod_authz_core.c(802): [client 192.168.0.209:55675] AH01626:
> authorization result of : granted
> [Thu Feb 20 10:47:51.342397 2014] [cgi:error] [pid 26392] [client
> 192.168.0.209:55675] AH01215: suexec policy violation: see suexec log
> for more details
> [Thu Feb 20 10:47:51.342765 2014] [cgi:error] [pid 26392] [client
> 192.168.0.209:55675] End of script output before headers: dspam.cgi
> [Thu Feb 20 10:47:51.364314 2014] [core:debug] [pid 26392]
> util_cookies.c(59): [client 192.168.0.209:55675] AH7: ap_cookie:
> user 'user@domain.local' set cookie:
> 'session=5NdUE0kHQSGYA+ui0Q3tfOQ9Xe6nEXQIi2bINcDzE5QGKSFto6pcNFFvQFZK4yW+fz9zCqCgK02ibacwHPH+84uyEbqwwuq2h2ZzgD/DvJU9s4g/NUUk13SfoVQdFwyDoFqFxjY2CJYKTUP6dJ9AfoWDMD/EN4uYPQ7/+TzccJ0=;path=/'
>
>
> Directory /var/www/dspam Permissions
>
> drwxr-xr-x 2 dspam dspam  4096 Feb 20 10:10 .
> drwxr-xr-x 3 root  root   4096 Feb 19 19:34 ..
> -rwxr-xr-x 1 dspam dspam 29602 Apr  4  2013 admin.cgi
> -rwxr-xr-x 1 dspam dspam  5853 Apr  4  2013 admingraph.cgi
> -rwxr-xr-x 1 dspam dspam   562 Feb 11 15:47 authenticate.php
> -rwxr-xr-x 1 dspam dspam  3179 Feb  7 10:17 base.css
> -rwxr-xr-x 1 dspam dspam  7137 Feb  7 10:17 configure.pl
> -rw-r--r-- 1 dspam dspam  1394 Feb  6 18:52 default.prefs
> -rw-r--r-- 1 dspam dspam  4792 Feb  7 10:17 dspam-logo-small.gif
> -rwxr-xr-x 1 dspam dspam 55543 Feb 11 13:07 dspam.cgi
> -rw-r--r-- 1 dspam dspam   822 Feb  7 10:17 dspam.js
> -rw-r--r-- 1 dspam dspam 15774 Feb  6 18:52 favicon.ico
> -rwxr-xr-x 1 dspam dspam  4655 Apr  4  2013 graph.cgi
> -rwxr-xr-x 1 dspam dspam 61390 Feb  6 18:52 htmlize.pl
> -rwxr-xr-x 1 dspam dspam20 Feb 19 19:01 info.php
> -rw-r--r-- 1 root  root416 Feb 11 17:16 login.html
> -rw-r--r-- 1 root  root337 Feb 11 15:37 loginb.html
> -rwxr-xr-x 1 dspam dspam   718 Feb  6 18:52 logout.cgi
> -rwxr-xr-x 1 dspam dspam  1192 Feb 20 10:05 logout.php
> -rwxr-xr-x 1 dspam dspam   245 Feb 11 13:34 logout2.php
> -rw-r--r-- 1 dspam dspam 17168 Feb  6 18:52 rgb.txt
> -rw-r--r-- 1 dspam dspam   589 Feb  6 18:52 rtl.css
>
>
>
> site config
>
>
> 
>
>
> LogLevel debug
> SuexecUserGroup dspam dspam
> Addhandler cgi-script .cgi
> Options +ExecCGI -Indexes
>
> DocumentRoot /var/www/dspam
>
> ErrorDocument 401 /login.html
>
> Session On
> SessionCookieName session path=/
> SessionCryptoPassphrase secret
>
> 
> AuthFormProvider ldap
> AuthType form
> AuthName "DSPAM Authentication"
> AuthFormLoginRequiredLocation http://192.168.0.36/login.html
> AuthLDAPURL
> "ldap://192.168.0.22:389/ou=People,dc=domain,dc=local?mail?sub";
> AuthLDAPBindDN "CN=LDAP Lookup,OU=Service
> Accounts,OU=People,DC=domain,DC=local"
> AuthLDAPBindPassword "password"
> Require valid-user
> 
>
> 
> Order allow,Deny
> Allow from all
> require all granted
> 
>
>   

[users@httpd] Apache 2.2 RemoveType

2015-01-21 Thread Roman Gelfand
I would like to display word documents server by apache 2.2 server in
browser.  To make sure it doesn't get downloaded, I put into virtual server
configuration RemoveType .doc.  The file is still being downloaded by both
ie 11 and chrome.

What else do I need to do to make sure the document appears in browser?

Thanks in advance


[users@httpd]

2023-05-15 Thread Roman Gelfand