Gossamer Forum
Home : General : Internet Technologies :

htaccess and mod_perl

Quote Reply
htaccess and mod_perl
htaccess cannot be disabled with many GT products (except Community) because of that Admin area. However, if it could be disabled (with Admin authentication for other products also being like Community) with AllowOverride None in cgi-bin, then would that give a reduced stat() call?

Thanks
HyTC

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================

Last edited by:

HyperTherm: Feb 13, 2005, 2:08 AM
Quote Reply
Re: [HyperTherm] htaccess and mod_perl In reply to
Hey HyperTherm,

I read an article[1] not too long ago on speeding up Apache. It was recommended that you set AllowOverride to None where you can, like you mentioned, and put as many directives as you can in the httpd.conf file as well. As long as you have root access to the server you should be able to set the auth for all your GT products in a <Directory> directive and eliminate the need for .htaccess altogether. I haven't tried this myself so I have no idea if it is truly feasible.

But... I'm not a mod_perl expert, what impact does mod_perl have on .htaccess to make you want to do this?

~Charlie

[1] http://www.onlamp.com/...8/19/apacheckbk.html
Quote Reply
Re: [HyperTherm] htaccess and mod_perl In reply to
Hi,

You can disable .htaccess, you just need to setup the password protection inside the main Apache conf (just copy and paste the contents of the .htaccess file into a directory block for your admin area). Changing passwords still work as well from the admin as it's writing to the same .htpasswd file.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Chaz] htaccess and mod_perl In reply to
Hi Chaz

Actually i am not even a beginer on mod_perl and i am not scared to ask questions even if that makes me sound like one but spend hell lot of time on googling and in an attempt to catchup with mod_perl voodoo i came acrosss this:

http://modperlbook.org/html/ch11_06.html

Additionally, was also looking for help as to what impact (and also how to), really Apache::SizeLimit in startup.pl to restart httpd_perl beyond a certain RES Limit or something. Just trying to be adventurous and in the process may be learn a bit :)

Thanks
HyTC

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [HyperTherm] htaccess and mod_perl In reply to
Ahh, I see. mod_perl doesn't exactly have a negative impact. It's more along the lines of Apache tuning to squeeze a bit more performance out of mod_perl. Thanks for the link :)

~Charlie
Quote Reply
Re: [Alex] htaccess and mod_perl In reply to
Hi Alex.

Thanks for the htaccess part.
Would lile to know about Apache::SizeLimit to restart httpd_perl above a certain RES value ... tried on SHR but it really doesn't make sense as SHR in my case is ~ 2100-2200 and RES keeps growing...starting from 37MB and then grows with time.

Was just looking for a Howto on this... restarting httpd_perl above a certain RES value using Apache::SizeLimit or you do not recommend that?

TIA

HyTC

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================
Quote Reply
Re: [Chaz] htaccess and mod_perl In reply to
Yup. Perhaps the bulkiness of mod_perl httpd only adds to the whole thing. I am still learning. I have bookmarked your link too for re-reading again and again ... it takes time to grasp at 40+ ;)

Thanks
HyTC

Thanks
HyTC
==================================
Mail Me If Contacting Privately Is That Necessary.
==================================