[EMAIL PROTECTED] Loadbalancing/stickysession/Source_IP
Hello, I'm using mod_proxy balancer, and I need to redirect all requests coming from a user to the same backend server. Our application does not setup cookies and in this sense does not rely on sessions in order to work with requests sent from webclients that reject cookies. I set up my own session variable which I use for stickysession=SrvID, and roite=srv1,2,.. it seems to work, but I still need to cover cases if/when the webclient does not use cookies. My question is, how can I configure mod_proxy balancer to also use the source IP address to stick to a particular backend server, without using cookies. Many thanks
Re: [EMAIL PROTECTED] url redirection
Hello again, I read the document and I did not get the correlation with my case. you said > the case. You can check that simply by looking at > the source code of > the content sent back to your browser and see if it > makes sense in the > context of the current URL. > All I can say is that if I use [R=301,L], the rewrite works perfectly. If I use [P,L], the forwarding does not work: 2 frames are indeed displayed but the pages are not. These 2 pages are jsp and they are not displayed because they are fetched in apache while they should be fetched from the tomcat webapps. Is this what you meant by "broken links"? Can you please also clarify what you want me to check? thanks a lot. --- Joshua Slive <[EMAIL PROTECTED]> wrote: > On Fri, Mar 28, 2008 at 2:17 PM, Melanie Pfefer > <[EMAIL PROTECTED]> wrote: > > Hello Joshua, > > > > I suspect also that the backend server (a tomcat) > is > > not accepting this redirection. > > Actually, the 2 rewrite rules follow the same > basics > > but in the first rewrite rule, the backend server > is a > > java servlet. > > > > Do you think that additional configuration needs > to be > > done on tomcat side not apache? > > Did you read the document I suggested: > > > > http://www.apachetutor.org/admin/reverseproxies > > As I've said a couple times already, I think the > most likely answer is > simply a broken link/href in your documents caused > by the fact that > the URL as seen by the client is different from the > one seen by the > back-end server after it passes through the reverse > proxy. There is no > point looking for more complicated answers until you > check if that is > the case. You can check that simply by looking at > the source code of > the content sent back to your browser and see if it > makes sense in the > context of the current URL. > > Joshua. > > - > 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: > [EMAIL PROTECTED] >" from the digest: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > ___ Yahoo! For Good helps you make a difference http://uk.promotions.yahoo.com/forgood/ - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] url redirection
I also find out that I do not have mod_proxy_html loaded. But the situation remains the same even after loading the module... --- Melanie Pfefer <[EMAIL PROTECTED]> wrote: > Hello again, > > I read the document and I did not get the > correlation > with my case. > > you said > > the case. You can check that simply by looking at > > the source code of > > the content sent back to your browser and see if > it > > makes sense in the > > context of the current URL. > > > > All I can say is that if I use [R=301,L], the > rewrite > works perfectly. > > If I use [P,L], the forwarding does not work: 2 > frames > are indeed displayed but the pages are not. These 2 > pages are jsp and they are not displayed because > they > are fetched in apache while they should be fetched > from the tomcat webapps. Is this what you meant by > "broken links"? > > Can you please also clarify what you want me to > check? > > thanks a lot. > > --- Joshua Slive <[EMAIL PROTECTED]> wrote: > > > On Fri, Mar 28, 2008 at 2:17 PM, Melanie Pfefer > > <[EMAIL PROTECTED]> wrote: > > > Hello Joshua, > > > > > > I suspect also that the backend server (a > tomcat) > > is > > > not accepting this redirection. > > > Actually, the 2 rewrite rules follow the same > > basics > > > but in the first rewrite rule, the backend > server > > is a > > > java servlet. > > > > > > Do you think that additional configuration > needs > > to be > > > done on tomcat side not apache? > > > > Did you read the document I suggested: > > > > > > > http://www.apachetutor.org/admin/reverseproxies > > > > As I've said a couple times already, I think the > > most likely answer is > > simply a broken link/href in your documents caused > > by the fact that > > the URL as seen by the client is different from > the > > one seen by the > > back-end server after it passes through the > reverse > > proxy. There is no > > point looking for more complicated answers until > you > > check if that is > > the case. You can check that simply by looking at > > the source code of > > the content sent back to your browser and see if > it > > makes sense in the > > context of the current URL. > > > > Joshua. > > > > > - > > 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: > > [EMAIL PROTECTED] > >" from the digest: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > > > > > > ___ > > Yahoo! For Good helps you make a difference > > http://uk.promotions.yahoo.com/forgood/ > > - > 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: > [EMAIL PROTECTED] >" from the digest: > [EMAIL PROTECTED] > For additional commands, e-mail: > [EMAIL PROTECTED] > > __ Sent from Yahoo! Mail. A Smarter Inbox http://uk.docs.yahoo.com/nowyoucan.html - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Where to place rewrite rules?
On Fri, Mar 28, 2008 at 11:42 PM, Sam Carleton <[EMAIL PROTECTED]> wrote: > In analyzing my customers log file from running Filemon (Windows tool > to log file IO), it looks like Apache is trying to find the URL before > the RewriteRules are running. Is this normal? If not, do I have my > rewrite rules in the right place? > > AllowOverride all > Is it looking for htaccess? Probably better to keep your rewriterules outside of htaccess or . -- Eric Covener [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Where to place rewrite rules?
Eric, When I do the following, the rewrite rules don't seem to work. Where should I be placing the rewrite rules and what settings should I have for AllowOverride to stop it from looking for the .htaccess? Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all Options SymLinksIfOwnerMatch AllowOverride all Order allow,deny Allow from all PhotoParataCfg conf/PhotoParata.conf RewriteEngine On RewriteRule ^images/([^/]+)/([^/]+)$ theImage?fldoid=$1&imgoid=$2 [L] RewriteRule ^images/([^/]+)/([^/]+)/([^/]+)$ theImage?fldoid=$1&imgoid=$2&tn=$3 [L] RewriteRule ^category/([^/]+)$ index.php?fldoid=$1 [L] RewriteRule ^category/([^/]+)/i/([^/]+)$ index.php?fldoid=$1&imgoid=$2 [L] RewriteRule ^category/([^/]+)/p/([\d]*)$ index.php?fldoid=$1&p=$2 [L] ThreadsPerChild 25 MaxRequestsPerChild 0 ServerName basement Listen 80 EnableSendfile Off EnableMMAP Off Win32DisableAcceptEx KeepAlive On LoadModule auth_basic_module modules/mod_auth_basic.so LoadModule auth_digest_module modules/mod_auth_digest.so LoadModule authz_host_module modules/mod_authz_host.so LoadModule dir_module modules/mod_dir.so LoadModule mime_module modules/mod_mime.so LoadModule mime_magic_module modules/mod_mime_magic.so LoadModule env_module modules/mod_env.so LoadModule rewrite_module modules/mod_rewrite.so LoadModule alias_module modules/mod_alias.so PHPIniDir "D:/MSDev/PhotoParata/httpd/conf" LoadModule php5_module "D:/MSDev/PhotoParata/httpd/modules/php5apache2_2.dll" LoadModule promenade_module modules/mod_promenade.so ServerRoot "D:/MSDev/PhotoParata/httpd" DocumentRoot "D:/MSDev/PhotoParata/httpd/htdocs" SetEnv TMP "D:/MSDev/PhotoParata/httpd/tmp" Options FollowSymLinks AllowOverride None Order deny,allow Deny from all Satisfy all Options SymLinksIfOwnerMatch AllowOverride all Order allow,deny Allow from all PhotoParataCfg conf/PhotoParata.conf RewriteEngine On RewriteRule ^images/([^/]+)/([^/]+)$ theImage?fldoid=$1&imgoid=$2 [L] RewriteRule ^images/([^/]+)/([^/]+)/([^/]+)$ theImage?fldoid=$1&imgoid=$2&tn=$3 [L] RewriteRule ^category/([^/]+)$ index.php?fldoid=$1 [L] RewriteRule ^category/([^/]+)/i/([^/]+)$ index.php?fldoid=$1&imgoid=$2 [L] RewriteRule ^category/([^/]+)/p/([\d]*)$ index.php?fldoid=$1&p=$2 [L] DirectoryIndex index.php index.html PhotoParataLicense conf/license.bin SetHandler promenadeImages SetHandler grandMarshal ErrorLog logs/error.log LogLevel error DefaultType text/plain TypesConfig conf/mime.types MIMEMagicFile conf/magic RewriteLog logs/rewrite.log RewriteLogLevel 0 - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Spambots
Hi all, I am being hit with a number of spam bots (email address harvesters) and have implimeted some deny referrers ruls as a short term fix. Does anyone know of any permanent long term fixes? -Grant
Re: [EMAIL PROTECTED] url redirection
On Sat, Mar 29, 2008 at 6:41 AM, Melanie Pfefer <[EMAIL PROTECTED]> wrote: > Hello again, > > I read the document and I did not get the correlation > with my case. > > you said > > > the case. You can check that simply by looking at > > the source code of > > the content sent back to your browser and see if it > > makes sense in the > > context of the current URL. > > > > All I can say is that if I use [R=301,L], the rewrite > works perfectly. > > If I use [P,L], the forwarding does not work: 2 frames > are indeed displayed but the pages are not. These 2 > pages are jsp and they are not displayed because they > are fetched in apache while they should be fetched > from the tomcat webapps. Is this what you meant by > "broken links"? > > Can you please also clarify what you want me to check? I'll try to be more explicit. Say that http://backend/ has a page called index.html. In that page, there is an embedded frame that is referenced as /frame1.html. When you do a redirect, the browser makes a request for http://backend/index.html and sees the frame link and requests it as http://backend/frame1.html. If you do a proxy, the client requests http://proxy/backend/index.html and the proxy then requests http://backend/index.html. What it send back to the client still references /frame1.html, and the client resolves that relative to the URL that IT requested. Therefore it sends a new request for http://proxy/frame1.html. Obviously this URL doesn't exist (it should be http://proxy/backend/frame1.html) and therefore the frameset doesn't display properly. If this is indeed the problem (and you verify that simply by looking at the content that is sent back and understanding how the browser resolves relative references), then it can be fixed with proper configuration of mod_proxy_html as explained in that article. Joshua. - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Where to place rewrite rules?
On Sat, Mar 29, 2008 at 8:46 AM, Sam Carleton <[EMAIL PROTECTED]> wrote: > Eric, > > When I do the following, the rewrite rules don't seem to work. Where > should I be placing the rewrite rules and what settings should I have > for AllowOverride to stop it from looking for the .htaccess? RewriteRules need to be in the proper virtual host, AllowOverride none prevents apache from looking for .htaccess files When you pull your rules out of Directory/htaccess, the URL you're testing against changes (the per-directory component hasn't been stripped out -- now it always starts with a slash) -- Eric Covener [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] error making apache2 "cannot open file `/home/gatekeeper/minfrin/rpms/httpd-2.0.50/include/ap_compat.h'"
Hi, I was trying to install apache2 on CentOS5 and got the following error. = gawk -f /var/software/httpd-2.0.50/build/make_var_export.awk `cat export_files` > export_vars.h gawk: /var/software/httpd-2.0.50/build/make_var_export.awk:75: fatal: cannot open file `/home/gatekeeper/minfrin/rpms/httpd-2.0.50/include/ap_compat.h' for reading (No such file or directory) make[2]: *** [export_vars.h] Error 2 make[2]: Leaving directory `/var/software/httpd-2.0.50/server' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/var/software/httpd-2.0.50/server' make: *** [all-recursive] Error 1 [EMAIL PROTECTED] httpd-2.0.50]# == how do I fix this? thanks Siju - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] error making apache2 "cannot open file `/home/gatekeeper/minfrin/rpms/httpd-2.0.50/include/ap_compat.h'"
On Sat, Mar 29, 2008 at 11:25 AM, Siju George <[EMAIL PROTECTED]> wrote: > Hi, > I was trying to install apache2 on CentOS5 and got the following error. I don't know, but why are you building 2.0.50? If that is a CentOS restriction, you should content CentOS to figure out what is going wrong. Joshua. - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Spambots
On Sat, Mar 29, 2008 at 9:52 AM, Grant Peel <[EMAIL PROTECTED]> wrote: > > > Hi all, > > I am being hit with a number of spam bots (email address harvesters) and > have implimeted some deny referrers ruls as a short term fix. > > Does anyone know of any permanent long term fixes? I'm not sure what you mean by "long term fixes". There are various sites out there that have lists of nasty robots. There are also ways to hide addresses on your site from robots using images/captchas/etc (although I don't really recommend that). Joshua. - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] error making apache2 "cannot open file `/home/gatekeeper/minfrin/rpms/httpd-2.0.50/include/ap_compat.h'"
On Sat, 29 Mar 2008 20:55:05 +0530 "Siju George" <[EMAIL PROTECTED]> wrote: > Hi, > I was trying to install apache2 on CentOS5 and got the following > error. > > = > gawk -f /var/software/httpd-2.0.50/build/make_var_export.awk `cat > export_files` > export_vars.h Why such an old version? > gawk: /var/software/httpd-2.0.50/build/make_var_export.awk:75: fatal: > cannot open file > `/home/gatekeeper/minfrin/rpms/httpd-2.0.50/include/ap_compat.h' for > reading (No such file or directory) That path indicates that configure was run on one of the developers' own machine. Yours is no doubt different. Whatever you have, you're in the wrong time (2008) and place (anywhere other than minfrin's workstation) to build it. Where the did you get that from? -- Nick Kew Application Development with Apache - the Apache Modules Book http://www.apachetutor.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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Where to place rewrite rules?
Sorry about the last email a few minutes ago, that was meant for my customer, trying to figure out why Apache is running so slow for him... On Sat, Mar 29, 2008 at 11:04 AM, Eric Covener <[EMAIL PROTECTED]> wrote: > On Sat, Mar 29, 2008 at 8:46 AM, Sam Carleton > <[EMAIL PROTECTED]> wrote: > > Eric, > > > > When I do the following, the rewrite rules don't seem to work. Where > > should I be placing the rewrite rules and what settings should I have > > for AllowOverride to stop it from looking for the .htaccess? > > RewriteRules need to be in the proper virtual host, AllowOverride none > prevents apache from looking for .htaccess files So AllowOverride none does not effect DirectoryIndex? > When you pull your rules out of Directory/htaccess, the URL you're > testing against changes (the per-directory component hasn't been > stripped out -- now it always starts with a slash) Ok, so I need to add the leading slash. The first two rules are to rewrite the URL for my Apache C Module which I currently have handling a location. something is going wrong because I do see in the rewrite rule log that it is getting rewritten, but the Apache C Module isn't getting the handler anymore. Here is what I have right now, not scoped in anything else: RewriteEngine On RewriteRule ^/images/([^/]+)/([^/]+)$ /theImage?fldoid=$1&imgoid=$2 [L] RewriteRule ^/images/([^/]+)/([^/]+)/([^/]+)$ /theImage?fldoid=$1&imgoid=$2&tn=$3 [L] RewriteRule ^/category/([^/]+)$ /index.php?fldoid=$1 [L] RewriteRule ^/category/([^/]+)/i/([^/]+)$ /index.php?fldoid=$1&imgoid=$2 [L] RewriteRule ^/category/([^/]+)/p/([\d]*)$ /index.php?fldoid=$1&p=$2 [L] SetHandler promenadeImages - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Spambots
Grant Peel wrote: Does anyone know of any permanent long term fixes? Lift off and nuke 'em from orbit. It's the only way to be sure. - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[EMAIL PROTECTED] Help apache 101
Hi, I am new to the web server please help me with this 2 questions. 1/ Setup the basic web server myhost.mydomain.com 2/ Setup the virtual host www.mydomain.com My linux system hostname is: myhost.mydomain.com IP: 1.2.3.4 DNS: www.mydomain.com CNAME myhost.mydomain.com Please explain this: If I use default DocumentRoot /var/www/html for question #1, and use VirtualHost with DocumentRoot /var/www/virtual for #2, I no longer see the index.html file from DocumentRoot of #1 Question #1 does not asked to use the Virtual host. Can I just use the default DocumentRoot to config the web server OR have to use the Virtual host ? Thanks Tam - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Help apache 101
On Sat, Mar 29, 2008 at 12:39 PM, Minh Cao <[EMAIL PROTECTED]> wrote: > > > Hi, > > I am new to the web server please help me with > this 2 questions. > > > 1/ Setup the basic web server myhost.mydomain.com > 2/ Setup the virtual host www.mydomain.com > > > My linux system hostname is: myhost.mydomain.com > IP: 1.2.3.4 > DNS: www.mydomain.com CNAME myhost.mydomain.com > > > Please explain this: > If I use default DocumentRoot /var/www/html for > question #1, and use > VirtualHost with DocumentRoot /var/www/virtual for #2, > I no longer see the index.html file from > DocumentRoot of #1 > > > Question #1 does not asked to use the Virtual host. > Can I just use the default DocumentRoot to config the > web server OR > have to use the Virtual host ? I think you need to read this: http://httpd.apache.org/docs/2.2/vhosts/name-based.html#using which tells you that you need a section for every host once you start to use NameVirtualHost. The DocumentRoot in the "main server" no longer has an effect. Joshua. - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Spambots
Mark, I take it from your reply that the only reliable way right now is to keep using the referrers deny method then? -Grant - Original Message - From: "Mark Space" <[EMAIL PROTECTED]> To: Sent: Saturday, March 29, 2008 12:38 PM Subject: Re: [EMAIL PROTECTED] Spambots Grant Peel wrote: Does anyone know of any permanent long term fixes? Lift off and nuke 'em from orbit. It's the only way to be sure. - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [EMAIL PROTECTED] Spambots
I have visited a few lists that help make up my current spam bot deny list. Can anyone reccomend a list thats reliably well written and up -to-date/updated frequently? -Grant - Original Message - From: "Joshua Slive" <[EMAIL PROTECTED]> To: ; "Grant Peel" <[EMAIL PROTECTED]> Sent: Saturday, March 29, 2008 11:56 AM Subject: Re: [EMAIL PROTECTED] Spambots On Sat, Mar 29, 2008 at 9:52 AM, Grant Peel <[EMAIL PROTECTED]> wrote: Hi all, I am being hit with a number of spam bots (email address harvesters) and have implimeted some deny referrers ruls as a short term fix. Does anyone know of any permanent long term fixes? I'm not sure what you mean by "long term fixes". There are various sites out there that have lists of nasty robots. There are also ways to hide addresses on your site from robots using images/captchas/etc (although I don't really recommend that). Joshua. - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - 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: [EMAIL PROTECTED] " from the digest: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]