Re: [users@httpd] Help on Caching

2016-09-05 Thread Ezra Taylor
Apache has its own cache feature but I think Varnish is a better solution.
Check out the page below.

https://varnish-cache.org/

On Sun, Sep 4, 2016 at 4:31 AM, Jayaram Ponnusamy <
jayaram.ponnus...@gmail.com> wrote:

> Dear All,
>
> I am new to Apache, our current system architecture is like Apache
> WebServer->Tomcat Server-> DataBase & CMS & Apache Solr Search.
>
> Currently to load a page is taking 40seconds to 1minutes by using
> WebServer URL, however its taking lessthan 10Seconds by using Tomcat URL.
> We connected Tomcat & HTTP by AJP 1.3
>
> is there any way to caching the contents within Apache for Static
> contents. So, it will load static content without communicate from Tomcat &
> other systems using mod_cache, mod_disk_cache, mod_file_cache
> & mod_mem_cache?
>
> Kindly please correct me if I am wrong.
>
>
> --
>
> *Thanks & Regards,*
> *Jayaram Ponnusamy*
>



-- 
Ezra Taylor


Re: [users@httpd] AuthType Digest or AuthType Basic not workin in Apache 2.4.6

2013-10-02 Thread Ezra Taylor
Eric:
 It doesn't show that the 401 is being used.  I got straight to the
page.


On Wed, Oct 2, 2013 at 7:36 AM, Eric Covener  wrote:

> On Mon, Sep 30, 2013 at 2:12 AM, Ezra Taylor 
> wrote:
> > Hello All:
> >
> >I've been banging on this issues for a couple of days now.  I
> > have all modules installed and can't get AuthType Basic or AuthType
> Digest
> > to work.  I even have a setup for LDAP that doesn't work.  The same setup
> > works as in Apache 2.2.  Can you guys give me some pointers as to were I
> > went astray? thanks all for your help.  I used htdigest to generate
> password
> > and realm for Digest.
>
> Step one would be to consult the error log. What does it say?
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


-- 
Ezra Taylor


Re: [users@httpd] AuthType Digest or AuthType Basic not workin in Apache 2.4.6

2013-10-01 Thread Ezra Taylor
Leo:

   Its start fine when I run it from the command line.


On Tue, Oct 1, 2013 at 12:28 PM, Leo Donahue - RDSA IT <
leodona...@mail.maricopa.gov> wrote:

> From: Ezra Taylor [mailto:ezra.tay...@gmail.com]
> Sent: Tuesday, October 01, 2013 7:34 AM
> To: users@httpd.apache.org
> Subject: Re: [users@httpd] AuthType Digest or AuthType Basic not workin
> in Apache 2.4.6
>
> Hello Leo:
>
>  Below is what I have.  I used htdigest to create a file name
> "somefile" and I specified the realm name realm.  Note, I'm using a RHEL
> clone from Amazon named "Amazon Linux AMI release 2013.03".  Note, this
> work in version Apache 2.2 but not in 2.4.6 for some reason.  Thanks for
> your help.
>
> Authtype Digest
> AuthName "realm"
> AuthDigestAlgorithm MD5
> AuthDigestDomain /
> AuthDigestProvider file
> AuthUserFile /etc/httpd/vhosts/secfiles
> Require valid-user
>
>
>  
> --
>
> I find that when I start httpd from the command line that I get a better
> indication of the potential error in my configuration.  When you start
> httpd, do you get an error or does it start fine with this configuration?
>
> Leo
>
> -
> To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
> For additional commands, e-mail: users-h...@httpd.apache.org
>
>


-- 
Ezra Taylor


Re: [users@httpd] AuthType Digest or AuthType Basic not workin in Apache 2.4.6

2013-10-01 Thread Ezra Taylor
Hello Leo:

 Below is what I have.  I used htdigest to create a file name
"somefile" and I specified the realm name realm.  Note, I'm using a RHEL
clone from Amazon named "Amazon Linux AMI release 2013.03".  Note, this
work in version Apache 2.2 but not in 2.4.6 for some reason.  Thanks for
your help.

Authtype Digest
AuthName "realm"
AuthDigestAlgorithm MD5
AuthDigestDomain /
AuthDigestProvider file
AuthUserFile /etc/httpd/vhosts/secfiles
Require valid-user


On Mon, Sep 30, 2013 at 10:31 AM, Leo Donahue - RDSA IT <
leodona...@mail.maricopa.gov> wrote:

>  >From: Ezra Taylor [mailto:ezra.tay...@gmail.com ]
>
> >Subject: [users@httpd] AuthType Digest or AuthType Basic not workin in
> Apache 2.4.6
> >
> >I've been banging on this issues for a couple of days now.  I have all
> modules installed and can't get AuthType Basic or AuthType Digest to work.
>
> For Digest, I believe all you need is: LoadModule auth_digest_module
> modules/mod_auth_digest.so
>
> >I even have a setup for LDAP that >doesn't work.  The same setup works as
> in Apache 2.2.  Can you guys give me some pointers as to were I went
> astray? thanks all for your help.  I used >htdigest to generate password
> and >realm for Digest.
> >
> >My setup is as follows.
> >
> >   AuthType Digest
> >AuthName "apache24"
> >AuthDigestAlgorithm MD5
> >    AuthDigestDomain / http://amazon-node
> >AuthDigestProvider file
> >AuthUserFile   /usr/local/apache24/conf/secfile
> >Require valid-user
> >--
> >Ezra Taylor
>
> When you issued the htdigest command: did you ue use apache24 as the realm
> name?  Did you make a mistake entering the password?
>
> For your AuthDigestDomain, are you trying to register two URI?  The root
> and the amazon-node?
>
>



-- 
Ezra Taylor


[users@httpd] AuthType Digest or AuthType Basic not workin in Apache 2.4.6

2013-09-29 Thread Ezra Taylor
Hello All:

   I've been banging on this issues for a couple of days now.  I
have all modules installed and can't get AuthType Basic or AuthType Digest
to work.  I even have a setup for LDAP that doesn't work.  The same setup
works as in Apache 2.2.  Can you guys give me some pointers as to were I
went astray? thanks all for your help.  I used htdigest to generate
password and realm for Digest.

My setup is as follows.

 AuthName "Private"
AuthType Basic
AuthBasicProvider file
AuthUserFile /usr/local/apache24/conf/secfile2
Require valid-user

and



   AuthType Digest
AuthName "apache24"
AuthDigestAlgorithm MD5
AuthDigestDomain / http://amazon-node
AuthDigestProvider file
AuthUserFile   /usr/local/apache24/conf/secfile
    Require valid-user


-- 
Ezra Taylor


Re: [users@httpd] Apache 2.4 fails to call LDAP auth modules [solved]

2013-09-14 Thread Ezra Taylor
All:

I have the same issue.  We upgraded to Apache 2.4 from 2.2 and
now Apache is not even connecting to our LDAP server.  Our config is below.
 Your assistance is greatly appreciated.  Is there a way to trace Apache
attempting to connect to our LDAP server?  Thanks.

AuthType Basic
AuthName "Blue in the face Login"
AuthBasicProvider ldap
AuthLDAPURL ldap://blue.intheface.com:389/ou=People,dc=intheface,dc=com?uid
AuthLDAPBindDN "cn=admin,dc=intheface,dc=com"
AuthLDAPBindPassword *&^%$
Require valid-user






On Thu, Aug 22, 2013 at 3:36 PM, William Paredes <
bill.pare...@einstein.yu.edu> wrote:

>   *From:* Igor Cicimov [icici...@gmail.com]
> *Sent:* Saturday, August 17, 2013 9:14 AM
> *To:* users
> *Subject:* Re: [users@httpd] Apache 2.4 fails to call LDAP auth modules
>
>
> On 16/08/2013 3:10 AM, "William Paredes" 
> wrote:
> >
> > Greetings!
> > It's been a few days that I'm struggling with this one:
> >
> > I don't get the authentication dialog window prompting for a user name &
> password when I enter an LDAP protected realm:
> >
> > 
> >   AuthType Basic
> >   AuthBasicProvider ldap
> >   AuthName "Testing LDAP"
> >   AuthLDAPBindDN "CN=cn_name,OU=ou_account,DC=ad,DC=uds,DC=yu,DC=edu"
> >   AuthLDAPBindPassword "pwrd"
> >   AuthLDAPURL "ldap://ldap.address:389/DC=ad,DC=uds,DC=yu,DC=edu";
> >   Require ldap-user jones
> > 
> >
> > However, I do get the authentication dialog with a user file:
> >
> >  
> > AuthType Basic
> > AuthName "New Test Auth Required"
> > AuthUserFile "/etc/htpasswd/.htpasswd"
> > Require valid-user
> > Options Indexes FollowSymLinks MultiViews
> > AllowOverride AuthConfig
> > Order allow,deny
> > Allow from all
> >   
> >
> > When I navigate to the LDAP protected directory I get into the directory
> without the authentication dialog.
> > When I navigate to the file protected directory I'm challenged with the
> authentication window.
> >
> > I built the following with the usual ./configure, make, sudo make
> install [no errors]:
> >
> > [apr 1.4.8]  ./configure --prefix=/usr/local/apr
> >
> > [apr-util 1.5.2]  ./configure --prefix=/usr/local/apr-util
> --with-apr=/usr/local/apr --with-ldap  --with-mysql=/usr/local/mysql
>  --with-ldap-lib=/usr/local/openldap/lib
> --with-ldap-include=/usr/local/openldap/include/
> >
> > [apache 2.4.6]  ./configure --enable-layout=MacMini
> --enable-modules=most --with-ssl=/usr --with-mpm-prefork --enable-ssl
> --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util
> --enable-authnz-ldap --enable-ldap --with-ldap
> >
> > I've set the apache LogLevel to debug and LDAPLibraryDebug to 7 but they
> have not revealed anything useful other than the following when I access
> the LDAP realms without being challenged:
> >
> > mod_authz_core.c(802): [client 129.98.101.122:51668] AH01626:
> authorization result of Require all granted: granted
> >
> > [Tue Aug 13 18:22:55.544690 2013] [authz_core:debug] [pid 60859:tid
> 4447301632] mod_authz_core.c(802): [client 129.98.101.122:51668] AH01626:
> authorization result of : granted
> >
> >
> > So how would I begin to trouble shoot this puzzle?
> > [OS X 10.8.4; 2.7GHz Intel Core i7; 16GB; mac mini desktop]
> >
>
> Start by confirming your ldap account is working outside apache using
> ldapsearch or ldapbind lets say. Have you done that? Have you confirmed the
> ldap connection works at all?
>
> > Thanks,
> > -bill
>
>
>  Thanks for the tip. I solved the problem by using Apache Directory
> Studio which indicated that I was using a bad AuthLDAPBindDN.
>
>  Regards,
> -bill
>
>


-- 
Ezra Taylor


Re: [users@httpd] Re: Configured New virtualhost asked for authentication entication

2011-12-26 Thread Ezra Taylor
Are you sure your own the right mailing list.  It appears that your using
nginx and not Apache.  Also, look for .htaccess files.

On Mon, Dec 26, 2011 at 2:13 AM, Reetika786  wrote:

>
> Hi
>
> In main config override is none still I am getting this error after
> authentication
>
> 401 Authorization Required
> nginx/1.0.9
>
> Please help I have confi so many projects on my server
>
>
> Reetika786 wrote:
> >
> > Hi
> >  I have configured virtual host but suddenly when its started asking for
> > authentication asking for username /pwd/ but ..Allowoveride optio is none
> > and i didnt config any authentication ..Please suggest me what to do
> >
>
> --
> View this message in context:
> http://old.nabble.com/Configured-New-virtualhost-asked-for-authentication-entication-tp33032205p33037324.html
> Sent from the Apache HTTP Server - Users mailing list archive at
> Nabble.com.
>
>
> -
> 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
>
>


-- 
Ezra Taylor


Re: [users@httpd] Question about mod_dav in Apache2(Centos)

2011-03-18 Thread Ezra Taylor
Matt:
  I've been testing DAV with DAVfs for a little while now.  Use my
config below as you see fit.  The below config is just a template I used
from compiling Apache2 from source.  Lastly, the config below is a file
named httpd-dav.conf.  Enjoy.



DavLockDB "/opt/apache2/var/DavLock"

Alias /uploads "/opt/apache2/uploads"


Dav On

Order Allow,Deny
Allow from all

AuthType Digest
AuthName DAV-upload

# You can use the htdigest program to create the password database:
#   htdigest -c "/opt/apache2/user.passwd" DAV-upload admin
AuthUserFile "/opt/apache2/user.passwd"
AuthDigestProvider file

# Allow universal read-access, but writes are restricted
# to the admin user.

require user admin










2011/3/10 zMatthew 

>  I configured Apache2 to allow "PUT" method on a directory,
>
>-  /usr/local/apache/DAVLock is writeable by Apache
>
>
>- "LoadModule dav_module modules/mod_dav.so"  is uncommented
>- "LoadModule dav_module modules/mod_dav_fs.so" is uncommented
>
>
> I just added  2 lines in default httpd.conf
>
> *DAVLockDB /usr/local/apache/DAVLock
> *
> 
> *DAV On*
> ....
>
> However, PUT method still isn't seen via " OPTIONS / HTTP/1.0"
> Could someone give me a hand? thanks
>
>



-- 
Ezra Taylor


Re: [users@httpd] Where are the step-by-step instructions for building apache 2.2.17 with LDAP authentication?

2011-03-18 Thread Ezra Taylor
Sam:
   I suggest you learn openldap first, then proceed to configuring
Openldap and Apache.  Also, you are using a very old version of Redhat.  You
can download Centos, which is a RHEL(Redhat Enterprise Linux) clone.  The
site is www.centos.org.  The openldap site is openldap.org.  A
good tutorial for openldap  http://www.zytrax.com/books/ldap/.  These guys,
I think have done a great job explaining Openldap. Good luck.

On Fri, Mar 18, 2011 at 9:29 AM, Sam Theman  wrote:

>  Hello,
>
> Can anyone point me to some step-by-step directions on how to build apache
> 2.2.17 with openldap I am on Red Hat 4  2.6.9-89.35.1.ELsmp
>
> Do I need to install openldap?
>
>
> I tried to build apache as below.
>
> ./configure --prefix=/usr/local/apache2 --with-ssl=/u01/fipsssl
> --enable-ssl -with-ldap --enable-ssl --enable-authnz-ldap --enable-ldap
> --with-mpm=prefork
>
> mod_ssl/2.2.17 compiled against Server: Apache/2.2.17, Library:
> OpenSSL/0.9.8r-fips
>
> Everything works fine, except when I go to do ldap authentication. The
> browser pops up a username/password window, I enter my username/password and
> then hit submit I get back "Internet Explorer cannot display the
> webpage" and in the error log I see the below segmentation fault but if
> I turn of ldap it works fine...:
>
> Thu Mar 17 14:47:04 2011] [info] [client 129.6.84.222] Connection to child
> 2 established (server acctnew.nist.gov:7100)
> [Thu Mar 17 14:47:04 2011] [info] Seeding PRNG with 136 bytes of entropy
> [Thu Mar 17 14:47:04 2011] [info] Initial (No.1) HTTPS request received for
> child 2 (server acctnew.nist.gov:7100)
> [Thu Mar 17 14:47:04 2011] [info] [client 129.6.84.222] Connection closed
> to child 2 with unclean shutdown (server acctnew.nist.gov:7100)
> [Thu Mar 17 14:47:10 2011] [info] [client 129.6.84.222] Connection to child
> 3 established (server acctnew.nist.gov:7100)
> [Thu Mar 17 14:47:10 2011] [info] Seeding PRNG with 136 bytes of entropy
> [Thu Mar 17 14:47:10 2011] [info] Initial (No.1) HTTPS request received for
> child 3 (server acctnew.nist.gov:7100)
> [Thu Mar 17 14:47:11 2011] [notice] child pid 25625 exit signal
> Segmentation fault (11)
>
> Thank you for any help!
> Sam
>



-- 
Ezra Taylor


Re: [us...@httpd] Apache to Tomcat forwarding not working properly

2010-05-03 Thread Ezra Taylor
Igor:
   I think you have to create a proxypass entry for your images
also.  Something similar to the below entry.


ProxyPass /images http://localhost/images

On Mon, May 3, 2010 at 9:06 PM, Igor Cicimov  wrote:

> Post your server/vhost and https configuration please.
>
>
> On Tue, May 4, 2010 at 1:57 AM, Gaurav Chhabra wrote:
>
>>
>> Hi,
>>
>>
>> I am facing some problem with Apache to Tomcat forwarding. I have Tomcat
>> (6.0.18) behind Apache (2.2). I want to use ‘https’ for receiving request
>> from the client. This request, when forwarded by Apache to Tomcat, will
>> use
>> ‘http’. My application’s name is ‘abc’, which is deployed in Tomcat’s
>> webapps dir. Both Tomcat & Apache are on the same machine. There is one
>> more
>> requirement: When a user just types the IP, it should, by default, forward
>> it to the application’s (abc) login page i.e., both the below mentioned
>> URL’s should point to the same page.
>>
>> https://IP/
>> http://IP:8080/abc
>>
>> I added the following lines in the httpd.conf file:
>> -
>> ProxyPass /abc http://IP:8080/abc/implement
>> ProxyPass / http://IP:8080/abc/implement
>> -
>>
>> Now there are two issues:
>> -
>> 1. When I try to use the https URL (https://IP/), it opens up the login
>> page
>> but the images are not visible. If I try the http one (
>> http://IP:8080/abc/),
>> then the page works fine.
>>
>> I thought of using the blank (appearing so) image’s URL
>> (https://IP/abc/abc/images/logo_login.gif >>> abc 2 times is not a typo;
>> the
>> deployed directory’s name is ‘abc’ & there is a dir named ‘abc’ inside
>> ‘abc’) and see where it’s pointing to. When I tried accessing it, it too
>> was
>> pointing to the same login page where http://IP:8080/abc/ OR https://IP/are
>> pointing.
>>
>> These are few results that might help you to understand my problem:
>> https://IP/ (No logo; only the login page)
>> https://IP/abc/abc/images/logo_login.gif (No logo; only the login page)
>> (I have also noticed that whatever I append in the https URL after
>> https://IP/abc/ it takes me to the login page with no image)
>>
>> http://IP:8080/abc/implement (Works perfectly. Login page with logo)
>> http://IP:8080/abc/implement/abc/images/logo_login.gif (Login page with
>> logo. I had no idea what this would display but at least I did not imagine
>> that it would display ‘login + image’)
>> http://IP:8080/abc/abc/images/logo_login.gif (Shows ONLY logo as it
>> ideally
>> should)
>>
>>
>> 2. If we use IE6 to open https URL, then a warning box pops-up before the
>> login page appears (without images). This behavior is absent in IE8.
>>
>> The warning message states “line 56 Object expected”.
>> -
>>
>> Can anyone please guide me?
>>
>>
>> Regards,
>> GC
>> --
>> View this message in context:
>> http://old.nabble.com/Apache-to-Tomcat-forwarding-not-working-properly-tp28436856p28436856.html
>> Sent from the Apache HTTP Server - Users mailing list archive at
>> Nabble.com.
>>
>>
>> -
>> 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
>>
>>
>


-- 
Ezra Taylor


Re: [us...@httpd] Can't alloc filename, referer: http://blah.com/somefile.shtml

2009-07-28 Thread Ezra Taylor

Jonathan:
Thanks for your response.  I was told to clone a box  
and fix the issues with the webpage.  I can tell you that their is a  
script that's run after the user fills in some fields.


Respectfuly
Ezra Taylor

On Jul 28, 2009, at 8:39 PM, Jonathan Zuckerman  
 wrote:


On Tue, Jul 28, 2009 at 5:33 PM, Ezra Taylor  
wrote:

 Gents:

   I'm gettng the above error.  Can one of you shine  
some light

on this?  My setup is as follows.  Thanks for your help.

Redhat 4 update 8
Apache 2.0.25

--
Ezra Taylor



If you are interested in an informed response I'd advise you to be
_much_ more descriptive.  Among the many followup questions I could
think of, I would first ask: are you truly just serving up a static
text file or is somefile.shtml actually served up by some scripting
language?

-
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



[us...@httpd] Can't alloc filename, referer: http://blah.com/somefile.shtml

2009-07-28 Thread Ezra Taylor
 Gents:

   I'm gettng the above error.  Can one of you shine some light
on this?  My setup is as follows.  Thanks for your help.

Redhat 4 update 8
Apache 2.0.25

-- 
Ezra Taylor