Issue with caching in Apache

2008-12-17 Thread Arnab Ganguly
Hi All, There is an issue I am getting.We are having a cache server and the main download server.Both are using Apache webserver.When the request from the client comes and if it is for the new file ,the request gets propagated to the main download server and next time onwards the request is being s

Using AuthName with mod_rewrite

2008-12-17 Thread Ravi Verma
Dear Friends, I am new to Apache and mod_rewrite. I have a challenge to append the AuthName to the URL. I am using the following directive to protect the location / with a popup and user data coming from an LDAP server. AuthzLDAPMethod ldap AuthzLDAPServer 10.2.1.86 AuthzLDAPU

Re: Hide Directory

2008-12-17 Thread Morgan Gangwere
http://sonof.bandit.name/ Member, INCOSE [ incose.org ] PACA [ paca.org ] and NMUG [ nmug.net ] FAIL: Cannot wind the coils on the Super High Power Extemely Large Hadron Collider! (fail code 0xd34df00d). please use the /extrafunds hook to avoid this next start. Find me on FreeNode! irc.freeno

Unknown shutdown of Apache process

2008-12-17 Thread howard chen
Hello, My apache server will almost shutdown once every day, at an unexpected time, for unknown reason. So, I have setup a cron job to check in every minute, if process done away, then restart the apache. Howevery, this does not solve my problem. I have look into the access and error log, still c

Re: Hide Directory

2008-12-17 Thread Brian Mearns
What exactly is it you're trying to do? Do you want, no matter what "page" the user is viewing, it will always have a URL of just www.yoursite.com? If that's the case, I think you're basically looking to recreate a simple webserver in server side scripting. In other words, you would need to write a

Re: Stateful session replication in apache

2008-12-17 Thread Eric Covener
On Wed, Dec 17, 2008 at 7:35 PM, Jai wrote: > Hi All, > > I know we can configure session replication in application servers. But is > it possible to have replication in apache webserver? We have two apache > servers running on production if one server goes down then users should have > to point

Re: Hide Directory

2008-12-17 Thread Bruce Hyatt
On Wed, Dec 17, 2008 at 5:22 PM, Edwin wrote: > Hey Guys and Girls > > I'm seriously under educated when it comes to this server and could use your > help with what is probably the easiest thing to do. But I got to ask and > diminish what pride I may have had to begin with. So if you an answer thi

Stateful session replication in apache

2008-12-17 Thread Jai
Hi All, I know we can configure session replication in application servers. But is it possible to have replication in apache webserver? We have two apache servers running on production if one server goes down then users should have to point to other server without any error. Is it possible in apa

Re: apache SetEnv with selinux

2008-12-17 Thread Peter
> Can you do this in your envvars file, sourced by apachectl, > instead? > Are these settings for your CGI's or for httpd itself? > I didn't think > the latter worked reliably anyway. > Eric, thanks. I modified /etc/ld.conf to get it work. Another question is that I use audit2allow to create *

Hide Directory

2008-12-17 Thread Edwin
Hey Guys and GirlsI'm seriously under educated when it comes to this server and could use your help with what is probably the easiest thing to do. But I got to ask and diminish what pride I may have had to begin with. So if you an answer this question I thank you in advance.How do I get the ser

RE: help with rewrites - changing the base path

2008-12-17 Thread Chris Evens
Matthew This works as if you just moved all the data files to a new directory. To keep this change internal you can drop the [R=301] in the brackets and just use the [L] character. Also as I am assuming that the rest of the URL is to be arguments that is where the regular expression comes into pl

RE: help with rewrites - changing the base path

2008-12-17 Thread ntwrkd
Thanks Chris, I will give this a shot. I wouldn't have discoveretd this in the docs. Does this require that the directory /technology-blog be present, or is it a cosmetic change only? Chris Evens wrote: > > Matthew > Is this more like a directory name change if so all you need is > > Rewrite

Re: Dummy vhost for intruders - comments please

2008-12-17 Thread Issac Goldstand
Chris Knight wrote: On Tue, Dec 16, 2008 at 3:13 PM, Peter Horn wrote: I don't think this is quite off-topic, just a bit left of centre. :-\ I run a small site with two subdomains of no-ip.org (like dyndns) using NameVirtualHost. Looking at the access log, a few percent of my traffic was fro

Re: Dummy vhost for intruders - comments please

2008-12-17 Thread Chris Knight
On Tue, Dec 16, 2008 at 3:13 PM, Peter Horn wrote: > I don't think this is quite off-topic, just a bit left of centre. :-\ > I run a small site with two subdomains of no-ip.org (like dyndns) using > NameVirtualHost. Looking at the access log, a few percent of my traffic was > from bots like Morfeu

Re: htcacheclean ignoring -l (limit)?

2008-12-17 Thread Matthew Tice
> > Okay, I tried that. Here are the results: [snip] Alright, I've figured it out. It's somewhat counter-intuitive (at least for me). It looks like the -l (limit) doesn't take into consideration the size of the directory. Example: # /opt/apache2/bin/htcacheclean -v -t -p/www/cache -l300M S

Re: Dummy vhost for intruders - comments please

2008-12-17 Thread Matus UHLAR - fantomas
On 17.12.08 10:13, Peter Horn wrote: > I don't think this is quite off-topic, just a bit left of centre. :-\ > I run a small site with two subdomains of no-ip.org (like dyndns) using > NameVirtualHost. Looking at the access log, a few percent of my traffic > was from bots like Morfeus F***ing Sca

Re: htcacheclean ignoring -l (limit)?

2008-12-17 Thread Matthew Tice
> > Try setting your cache size to some rediculously low (say 5K) mark. See if > htclean does anything. Also, does root have read/write permissions on > /www/cache? try chmod -R 777 /www/cache > > Okay, I tried that. Here are the results: # df -h /www/cache FilesystemSize Used Avail

Re: Common mod_rewrite rule for simple dynamic to static URL rewrite

2008-12-17 Thread Eric Covener
On Wed, Dec 17, 2008 at 12:11 AM, meharo wrote: > > Can we have a rule to convert > > _http://www.mydomain.com/path/to/myfile.jsp?ARG1=VAL1&ARG2=VAL2&&ARGN=VALN > > into > > _http://www.mydomain.com/path/to/myfile/ARG1-VAL1/ARG2-VAL2//ARGN-VALN.html http://wiki.apache.org/httpd/RewriteQue

Re: apache SetEnv with selinux

2008-12-17 Thread Eric Covener
On Wed, Dec 17, 2008 at 12:15 AM, Peter wrote: > in apache httpd.conf file, > I set the LD_LIBRARY_PATH pointing to my run time lib, > SetEnv LD_LIBRARY_PATH /my/dir > > if selinux is enforced, LD_LIBRARY_PATH settings won't work. I cannot find > any error messages in apache, /var/log/messages