niXforums Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   PreferencesPreferences   Log in to check your private messagesLog in to check your private messages   Log inLog in 
·  nixdoc.net ·  man pages ·  Linux HOWTOs ·  FreeBSD Tips ·  Forums
navigation Forum index » Apps » Apache
serving millions of files
Post new topic   Reply to topic Page 1 of 61 [905 Posts] View previous topic :: View next topic
Goto page:  1, 2, 3, ..., 59, 60, 61 Next
Author Message
James Richardson
*nix forums beginner


Joined: 10 Mar 2005
Posts: 17

PostPosted: Mon Feb 07, 2005 8:40 am    Post subject: RE: Re: serving millions of files Reply with quote

(By searching, I mean looking for the file to actually open
Quote:
it). This is because directory entries are stored unordered in
directory
blocks (even true for reiser4).

There are some physical limitations to the numbers of files on disk, I
can't remember them offhand.

Are you sure ? - I have around 18 million on ONE ext3 partition
because it is a Maildir from courier-imap. :-)

If reiserfs can not handel it, you need anoter fs like ext3.


I'm sure there are limitations. You didn't hit them yet!

I meant that reiserfs doesn't sort directory entries, not that it can't
handle lots of files. (Although in fact looks like reiser4 can sort
directory entries). This is an issue as to find the file/directory entry
in the directory block, the filesystem needs to do a linear search, or
read the whole thing, build a structure, then search that. This is
definitely slower than searching a very small unordered list.

Also, its not that the file system _cannot_ handle this stuff, and on a
sufficiently fast computer and sufficiently fast disk system, these things
may be quick, but its about how efficiently these things happen.

In these cases the "your mileage may vary" caveat does apply, but these
were my experiences writing a ~500 user document management system, using
Solaris, with EMC disk arrays.

By all means throw 100,000 files in one directory, it will work. I
wouldn't do it, though, if I were serving these files on a regular basis.
If they are there, just to be there, and rarely be accessed, then it
probably doesn't matter.

Best Regards,

James



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Steffen Heil
*nix forums beginner


Joined: 07 Feb 2005
Posts: 46

PostPosted: Mon Feb 07, 2005 9:01 am    Post subject: AW: Parallel Downloads - Apache 2 Reply with quote

Hi

Quote:
Also, 90% of the browsers hitting the site are IE 5+. Is
there something that I can configure within IE to be able to
download in parallel?

Yes, but typically it is already more then 1.

It's a registry setting:

[HKCU\Software\Microsoft\Windows\CurrentVersion\Internet Settings\]

Create a new DWORD Value MaxConnectionsPer1_0Server
Set it to 0000000a (hex) / 10 (Decimal)

Create a new DWORD Value MaxConnectionsPerServer
Set it to 0000000a (hex) / 10 (Decimal)

Afaict there values are 2 by default.
And they should be "2" in any browser: RFC2068.

Regards,
Steffen
Back to top
Joshua Slive
*nix forums Guru


Joined: 07 Feb 2005
Posts: 1647

PostPosted: Mon Feb 07, 2005 1:03 pm    Post subject: Re: How to pass user ID from Basic Auth windows to cgi script? Reply with quote

On Mon, 7 Feb 2005 12:19:33 +0800, Hwee Khoon, Neo
<hweekhoon.neo@pacific.net.sg> wrote:
Quote:
HI All,

need advice on how Apache can pass the user ID from the authentication
pop-up to a cgi script (which resides in the protected directory).

Look in the REMOTE_USER env variable.

Joshua.

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Yanbin Ma
*nix forums beginner


Joined: 07 Feb 2005
Posts: 4

PostPosted: Mon Feb 07, 2005 1:57 pm    Post subject: RE: How to pass user ID from Basic Auth windows to cgi script? Reply with quote

ENV{"REMOTE_USER"}

Hope it helps.

Yanbin

-----Original Message-----
From: Hwee Khoon, Neo [mailto:hweekhoon.neo@pacific.net.sg]
Sent: Sunday, February 06, 2005 11:20 PM
To: Apache Users
Subject: [users@httpd] How to pass user ID from Basic Auth windows to cgi
script?

HI All,


need advice on how Apache can pass the user ID from the authentication
pop-up to a cgi script (which resides in the protected directory).

Thanks.

Rgds,
HK

E.g. user clicks on abc.cgi which resides in
/usr/local/apache2/htdocs/mydoc/cgi2/

How can the user ID be passed onto the abc.cgi script?


<Directory "/usr/local/apache2/htdocs/mydoc/cgi2">
AllowOverride None
AuthType Basic
AuthName "Restricted Access"
AuthUserFile /usr/local/apache2/conf/mypasswords
Require valid-user
</Directory>


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




---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Boysenberry Payne
*nix forums addict


Joined: 07 Feb 2005
Posts: 71

PostPosted: Mon Feb 07, 2005 10:30 pm    Post subject: Help needed with installing on Mac OS X 10.3 from source Reply with quote

I had a problem with my apache mod_perl installation. The fink
installer
confused my systems default DAMP setup. It ended up so that dynamic
mysql libraries were the problem.

I decided to correct this by doing clean installs of all my major
systems
from source by hand. Right off the bat I was fraught with difficulties.

I decided to try to configure apache with layout=GNU and
-enable-shared=max.
It performed make && make install saying everything was ok. When I
tried:
apachetcl start I got the following:
dyld: /usr/local/sbin/httpd Undefined symbols:
_include_module
/usr/sbin/apachectl: line 186: 6269 Trace/BPT trap $HTTPD

I also tried to perl MakeFile.PL from my mod_perl 1.26 src dir and got
the following
errors:

ld: warning multiple definitions of symbol _regcomp
regex/libregex.a(regcomp.o) definition of _regcomp in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
regex/libregex.a(regexec.o) definition of _regexec in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
regex/libregex.a(regfree.o) definition of _regfree in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_actions_module
_include_module
_log_config_module
make[1]: *** [target_static] Error 1
make: *** [apache_httpd] Error 2

I've tried several configurations with no success.
I hope maybe someone is familiar with darwin and OS X to help me get
around the
default systems and set up my own working environment.

Thanks ahead of time,
Boysenberry


On Feb 7, 2005, at 5:19 PM, users-help@httpd.apache.org wrote:

Quote:
users@httpd.apache.org


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Jorge Schrauwen
*nix forums beginner


Joined: 08 Feb 2005
Posts: 8

PostPosted: Tue Feb 08, 2005 1:37 pm    Post subject: RE: Help needed with installing on Mac OS X 10.3 from source Reply with quote

I just compiled apache 2.0.52 on my ibook yesterday.

So let me ask, heb you desabled the Apache that came with the OS itself?
That was the problem for me it always tried to start the other version.

Jorge

-----Original Message-----
From: Boysenberry Payne [mailto:boysenberry@humaniteque.com]
Sent: Tuesday, February 08, 2005 0:30
To: users@httpd.apache.org
Subject: [users@httpd] Help needed with installing on Mac OS X 10.3 from
source

I had a problem with my apache mod_perl installation. The fink installer
confused my systems default DAMP setup. It ended up so that dynamic mysql
libraries were the problem.

I decided to correct this by doing clean installs of all my major systems
from source by hand. Right off the bat I was fraught with difficulties.

I decided to try to configure apache with layout=GNU and
-enable-shared=max.
It performed make && make install saying everything was ok. When I
tried:
apachetcl start I got the following:
dyld: /usr/local/sbin/httpd Undefined symbols:
_include_module
/usr/sbin/apachectl: line 186: 6269 Trace/BPT trap $HTTPD

I also tried to perl MakeFile.PL from my mod_perl 1.26 src dir and got the
following
errors:

ld: warning multiple definitions of symbol _regcomp
regex/libregex.a(regcomp.o) definition of _regcomp in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
regex/libregex.a(regexec.o) definition of _regexec in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
regex/libregex.a(regfree.o) definition of _regfree in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_actions_module
_include_module
_log_config_module
make[1]: *** [target_static] Error 1
make: *** [apache_httpd] Error 2

I've tried several configurations with no success.
I hope maybe someone is familiar with darwin and OS X to help me get around
the default systems and set up my own working environment.

Thanks ahead of time,
Boysenberry


On Feb 7, 2005, at 5:19 PM, users-help@httpd.apache.org wrote:

Quote:
users@httpd.apache.org


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


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Boysenberry Payne
*nix forums addict


Joined: 07 Feb 2005
Posts: 71

PostPosted: Tue Feb 08, 2005 6:35 pm    Post subject: Re: Help needed with installing on Mac OS X 10.3 from source Reply with quote

I renamed and backed up the httpd and apachectl to .old.sys
and installed apache_1.3.33 and so, yes, I deactivated the
older apache.
Maybe I have to do more?


On Feb 8, 2005, at 8:37 AM, Jorge Schrauwen wrote:

Quote:
I just compiled apache 2.0.52 on my ibook yesterday.

So let me ask, heb you desabled the Apache that came with the OS
itself?
That was the problem for me it always tried to start the other version.

Jorge

-----Original Message-----
From: Boysenberry Payne [mailto:boysenberry@humaniteque.com]
Sent: Tuesday, February 08, 2005 0:30
To: users@httpd.apache.org
Subject: [users@httpd] Help needed with installing on Mac OS X 10.3
from
source

I had a problem with my apache mod_perl installation. The fink
installer
confused my systems default DAMP setup. It ended up so that dynamic
mysql
libraries were the problem.

I decided to correct this by doing clean installs of all my major
systems
from source by hand. Right off the bat I was fraught with
difficulties.

I decided to try to configure apache with layout=GNU and
-enable-shared=max.
It performed make && make install saying everything was ok. When I
tried:
apachetcl start I got the following:
dyld: /usr/local/sbin/httpd Undefined symbols:
_include_module
/usr/sbin/apachectl: line 186: 6269 Trace/BPT trap $HTTPD

I also tried to perl MakeFile.PL from my mod_perl 1.26 src dir and got
the
following
errors:

ld: warning multiple definitions of symbol _regcomp
regex/libregex.a(regcomp.o) definition of _regcomp in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
regex/libregex.a(regexec.o) definition of _regexec in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
regex/libregex.a(regfree.o) definition of _regfree in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_actions_module
_include_module
_log_config_module
make[1]: *** [target_static] Error 1
make: *** [apache_httpd] Error 2

I've tried several configurations with no success.
I hope maybe someone is familiar with darwin and OS X to help me get
around
the default systems and set up my own working environment.

Thanks ahead of time,
Boysenberry


On Feb 7, 2005, at 5:19 PM, users-help@httpd.apache.org wrote:

users@httpd.apache.org


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


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





---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Boysenberry Payne
*nix forums addict


Joined: 07 Feb 2005
Posts: 71

PostPosted: Tue Feb 08, 2005 7:58 pm    Post subject: At the end of my rope with apache and mod_perl Reply with quote

Since I can’t seem to figure out how to install apache_1.3.33 on mac ox
x from source, I’m going to try and fix my issues with my currently
installed version (comes with os x.)
The problem I’m having is with mod_perl and mysql. I used fink to
install mysql at one point and it confused mod_perl as to which mysql
database to use. When I use mod_perl as a mod_cgi script it gets the
right database, when I use perl scripts using mod_perl it gives me the
following error:

dyld: /usr/sbin/httpd can't open library:
/sw/lib/mysql/libmysqlclient.14.dylib (No such file or directory,
errno = 2)
[Tue Feb 8 14:43:05 2005] [notice] child pid 436 exit signal Trace/BPT
trap (5)


What I think I need to do is get mod_perl to look for the right library
file for my currently working mysql database.

In my naiveté I thought, well why not just rebuild mod_perl. So I
tried and found out you need the apache source in order to reinstall
mod_perl. That’s when my life became very unpleasant. I can’t get
apache_1.3.33 to install. It gives me the following errors when I try
to compile mod_perl:

cc -DDARWIN -DMOD_PERL -DUSE_PERL_SSI -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -pipe -I/usr/local/include
-DUSE_HSREGEX -DNO_DL_NEEDED -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include
-I/usr/local/lib/perl5/5.8.6/darwin-2level/CORE -I. -I../..
-DUSE_PERL_SSI -fno-common -DPERL_DARWIN -no-cpp-precomp
-fno-strict-aliasing -pipe -I/usr/local/include -DMOD_PERL \
-o httpd buildmark.o modules.o modules/proxy/libproxy.a
modules/perl/libperl.a modules/standard/libstandard.a main/libmain.a
../os/unix/libos.a ap/libap.a regex/libregex.a `perl
/Users/boysie/unpublished/sources/mod_perl-1.29/src/modules/perl/ldopts
Apache ` -L/usr/local/lib
/usr/local/lib/perl5/5.8.6/darwin-2level/auto/DynaLoader/DynaLoader.a
-L/usr/local/lib/perl5/5.8.6/darwin-2level/CORE -lperl -ldl -lm -lc
-lexpat
ld: warning multiple definitions of symbol _regcomp
regex/libregex.a(regcomp.o) definition of _regcomp in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regcomp.So) definition of _regcomp
ld: warning multiple definitions of symbol _regexec
regex/libregex.a(regexec.o) definition of _regexec in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regexec.So) definition of _regexec
ld: warning multiple definitions of symbol _regfree
regex/libregex.a(regfree.o) definition of _regfree in section
(__TEXT,__text)
/usr/lib/libdl.dylib(regfree.So) definition of _regfree
ld: Undefined symbols:
_actions_module
_include_module
_log_config_module
make[1]: *** [target_static] Error 1
make: *** [apache_httpd] Error 2

Considering that I’m still learning Perl, this info is still a little
much for me to understand. That is, I’m not sure how to correct it.

I need to get mod_perl up and running asap. It behooves me to figure
out how to get mod_perl to look for the right database library…

Any help would be much appreciated…
Boysenberry
Back to top
Boysenberry Payne
*nix forums addict


Joined: 07 Feb 2005
Posts: 71

PostPosted: Wed Feb 09, 2005 8:14 am    Post subject: Re: At the end of my rope with apache and mod_perl Reply with quote

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ok, I tried using darwinports to install apache 1.3 and mod_perl 1.26
using
port install apache +mod_perl.
It seemed to off without a hitch, no errors, no problem.
Then I tried starting apache using:
sudo /opt/local/sbin/apachectl start and received the following error:

dyld: /opt/local/sbin/httpd Undefined symbols:
_include_module
/opt/local/sbin/apachectl: line 186: 8384 Trace/BPT trap
$HTTPD
/opt/local/sbin/apachectl start: httpd could not be started


Its similar to one of the errors I get when trying to compile from
source.
When I compared the httpd.conf files between my default (w/ os x 10.3)
apache and my darwin port I noticed the darwin port had the dso for
includes as such:
LoadModule log_config_module libexec/apache/mod_log_config.so
where as my original httpd.conf is as such:
LoadModule config_log_module libexec/apache/mod_log_config.so
changing it has no effect on the error.
The other inconsistency was in the os x original was the following line:
LoadModule perl_module libexec/httpd/libperl.so
It was missing from the darwin port, not that it makes a difference
with the error.

Why would a default module being missing?

Is there something about this particular module that is weird?

Thanks for all of the help so far. Anything else?

I'm going to try using some of the set up configurations already
suggested
with a source build and see if that gets me any further. Please, don't
give up
on me, I surely can't.

Boysenberry
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (Darwin)

iEYEARECAAYFAkIJ1HEACgkQBWcdy5xkwdzkIACg3wMJvR7NJD9weIfTQBwbE8k3
ursAn1F3m7VBG0r4SJ3/jV8/YX7lkLOu
=MsfI
-----END PGP SIGNATURE-----


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






PostPosted: Wed Feb 09, 2005 4:29 pm    Post subject: Re: Need a Virtual Host Refresher Course Reply with quote

Actually, the idea is that you can do more or less whatever you want Smile
You don't need to create all those folders. If you don't have cgi, don't
have private stuff, and don't use ssl, you only need a folder to put the
public pages (in this example public_html), and put the logs somewhere
obviously

gaël

David Blomstrom <david_blomstrom@yahoo.com> wrote on 09/02/2005 18.24.29:

Quote:
Wow, thanks so much for all the tips; you practically
wrote a book! Just to clarify a couple things, if I
add all these extra folders to each site...cgi-bin,
logs, private, /public_html/ and ssl...

C:/sites/site1/cgi-bin
C:/sites/site1/logs
C:/sites/site1/private
C:/sites/site1/public_html
C:/sites/site1/ssl

...then I'm actually going to put all my content
inside /public_html/, right? Wil I need to put
anything inside the other folders (cgi_bin), or are
they just there as placeholders of sorts? Do I need to
publish them to the Internet?

Thanks.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
David Blomstrom
*nix forums Guru Wannabe


Joined: 09 Feb 2005
Posts: 122

PostPosted: Wed Feb 09, 2005 6:15 pm    Post subject: Re: Need a Virtual Host Refresher Course Reply with quote

OK, I set up a couple sites inside public_html
folders, like this...

C:\sites\politix\public_html\

....but now I can't preview them at all. In fact, I
can't even preview the sites I didn't change, even
though I could normally view them at
http://localhost/mysite/

The basic purpose of putting my content in a folder
named public_html is security, right? So as long as no
intruder gains access to my computer, I shouldn't need
to both with public_html...right?

So, if I go back to my original configuration...

C:\sites\mysite\

....then would the following virtual host script still
work, or do I have to modify it?

<VirtualHost 127.0.0.1:80>
ServerAdmin webmaster@politix
ServerName politix:80
ServerAlias *.politix
CustomLog
"C:/sites/politix/logs/politix-access.log" vcombined
ErrorLog "C:/sites/politix/logs/politix-error.log"
DocumentRoot "c:/sites/politix"
<Directory "c:/sites/politix">
Options None
</Directory>
ScriptAlias /cgi-bin/ "c:/sites/politix/cgi-bin/"
<Directory "C:/sites/politix/cgi-bin">
Options +ExecCGI
</Directory>
</VirtualHost>

Also, is this stuff case sensitive? In other words, if
my physical path is actually C:\sites\GeoZoo\, should
I write ServerName GeoZoo:80, or would geozoo:80 work?

Thanks.


__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

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






PostPosted: Wed Feb 09, 2005 6:24 pm    Post subject: Re: update mod_proxy_balancer load factors programmatically Reply with quote

Ok...but how would this update the mod_proxy_balancer?

cheers,

David




|---------+---------------------------->
| | love |
| | <love.kumar@tecno|
| | vate.co.in> |
| | |
| | 02/09/2005 01:42 |
| | PM |
| | |
|---------+---------------------------->
Quote:
--------------------------------------------------------------------------------------------------------------------|
| |

| To: users@httpd.apache.org, dhay@lexmark.com |
| cc: |
| Subject: Re: [users@httpd] update mod_proxy_balancer load factors programmatically |
Quote:
--------------------------------------------------------------------------------------------------------------------|




I think one way would be to write a deamon which will check for load
average factor on your servers so you should send the request to least
loaded server or other way it can be to find out number of idle process
on these servers and send the request to the server with max number of
idle process.

Regards,
Love ..

dhay@lexmark.com wrote:

Quote:
Hi,

I am using Apache to load balance a set of Tomcat servers. However, a
round-robin or simple load-factor algorithm is not sufficient.

I am wondering therefore, if there is any way to programatically update
the
mod_proxy_balancer load factors on the fly?

Many thanks,

David




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










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






PostPosted: Wed Feb 09, 2005 6:31 pm    Post subject: Re: update mod_proxy_balancer load factors Reply with quote

Thanks Jim,

Is this a programmatic interface, or a web page interface?

How would I call it programmatically to update it on the fly?

thanks,

David



|---------+---------------------------->
| | Jim Jagielski |
| | <jim@jaguNET.com>|
| | |
| | 02/09/2005 02:25 |
| | PM |
| | Please respond to|
| | users |
| | |
|---------+---------------------------->
Quote:
--------------------------------------------------------------------------------------------------------------------|
| |

| To: users@httpd.apache.org |
| cc: love.kumar@tecnovate.co.in (love) |
| Subject: Re: [users@httpd] update mod_proxy_balancer load factors |
Quote:
--------------------------------------------------------------------------------------------------------------------|




The balancer has a built-in status/manager interface that
allows you to change balancer and worker properties.

dhay@lexmark.com wrote:
Quote:


Ok...but how would this update the mod_proxy_balancer?

I think one way would be to write a deamon which will check for load
average factor on your servers so you should send the request to least
loaded server or other way it can be to find out number of idle process
on these servers and send the request to the server with max number of
idle process.

Regards,
Love ..

dhay@lexmark.com wrote:

Hi,

I am using Apache to load balance a set of Tomcat servers. However, a
round-robin or simple load-factor algorithm is not sufficient.

I am wondering therefore, if there is any way to programatically update
the
mod_proxy_balancer load factors on the fly?

Many thanks,

David




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










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



--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"There 10 types of people: those who read binary and everyone else."

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






---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Leif W
*nix forums beginner


Joined: 07 Feb 2005
Posts: 12

PostPosted: Wed Feb 09, 2005 6:36 pm    Post subject: Re: Need a Virtual Host Refresher Course Reply with quote

Quote:
"David Blomstrom" <david_blomstrom@yahoo.com>; 2005-02-09@13:15 GMT-5

OK, I set up a couple sites inside public_html
folders, like this...

C:\sites\politix\public_html\

...but now I can't preview them at all. In fact, I
can't even preview the sites I didn't change, even
though I could normally view them at
http://localhost/mysite/

Ahh yes, this requires also that you have either the Servername
registered in DNS (most common case), OR (probably you case, which I do
for testing too) in your hosts file.

File: C:\WINDOWS\system32\drivers\etc\hosts

127.0.0.1 localhost
127.0.0.1 geozoo
127.0.0.1 politix

and so on.

If you want to view them at http://localhost/, then it's another config.
Just go to the VirtualHost with the ServerName localhost, and add the
Alias and Directory blocks for each host. Or skip adding the directoy,
and use a Redirect for each "mysite", to go to the actual site. You
would still need to update your hosts file with each site for the
redirect, obviously. If you have everything under localhost, then you
are no longer doing virtual hosting, and all those sites are not
independent, but part of the same site: localhost. If everything in the
sites is linked relatively (no links start with http://mysite/ , nor
with /, only with path/to/filename, or ../../other/path/to/filename,
this could be ok.

Quote:
The basic purpose of putting my content in a folder
named public_html is security, right? So as long as no
intruder gains access to my computer, I shouldn't need
to both with public_html...right?

No only because of security but because it's the right way to do virtual
hosting, which is what you asked about. Smile You could potentially be
giving an intruder access to the computer. You may listen only to IP
address 127.0.0.1, but if this machine is connected to a network, there
may be ways to come in from the outside and pretend to be coming from
127.0.0.1, then they can look at the web site which you publish the logs
for everyone to see, and you've got PHP available. They can see path
names in the logs, know where your Apache is, maybe know of a PHP
vulnerability, upload their own scripts or content, run their own
programs, reconfigure the server, change file timestamps and rewrite the
logs to cover their tracks. Even if I had the computer disconnected
from the network, I would still never configure it this way, because it
leads to not thinking of the consequences, and I might not be thinking
of them when it really would matter. Plus, once you get it right, it
helps you to remember to keep doing it. :-)

Quote:
So, if I go back to my original configuration...

C:\sites\mysite\

...then would the following virtual host script still
work, or do I have to modify it?

VirtualHost 127.0.0.1:80
ServerAdmin webmaster@politix
ServerName politix:80
ServerAlias *.politix
CustomLog
"C:/sites/politix/logs/politix-access.log" vcombined
ErrorLog "C:/sites/politix/logs/politix-error.log"
DocumentRoot "c:/sites/politix"
Directory "c:/sites/politix"
Options None
/Directory
ScriptAlias /cgi-bin/ "c:/sites/politix/cgi-bin/"
Directory "C:/sites/politix/cgi-bin"
Options +ExecCGI
/Directory
/VirtualHost

I'd still put the DocumentRoot in a separate folder. The way you use
it, it's the way I would use ServerRoot. DocumentRoot is totally
different from ServerRoot. ServerRoot can only be in the main server
config context (outside VirtualHost, never inside anything). ServerRoot
describes a folder with files that Apache needs to see, but should not
ever serve to anyone (except manual, icons, error). DocumentRoot
describes folders with content that is most commonly served to anyone
and everyone who can get a connection to Apache, by proper or imporper
means. The whole point of virtual hosting is to have separate
servernames, and separate folders for content.

Quote:
Also, is this stuff case sensitive? In other words, if
my physical path is actually C:\sites\GeoZoo\, should
I write ServerName GeoZoo:80, or would geozoo:80 work?

* Hmm, all Apache tokens, I would assume are case sensitve (ServerName,
not serverName).
* ServerName and ServerAlias values are not ever case sensitive.
* ServerAdmin should never be, but it depends on the mail server. It's
not standard to be case sensitive with email. WaRp-9.9_(at)_uSa.NeT
should work just fine to reach me.
* Path names in windows, it depends on the windows, but I would say are
probably not case sensitive. "C:/sites/geozoo" or "C:/sites/gEOzOO"
should work. They ARE case sensitive in Linux, FreeBSD, and probably in
most Unix and possibly in other OSes.

Try to get just one site running first, the localhost, using the
structure I outlined. Start with putting folders in the right place,
then changing the config to match the folders. Never assume that you
are prisoner to the existing broken config, and do not ever move folder
to match the broken config, just because it works, or you won't fully
understand how to do this stuff. If it doesn't seem to work be sure to
look at all of your access and error log files. If you make a request,
and the server responds with something, even a 404 not found or 403
forbidden or 500 internal server error, then there should be something
helpful in a log file. Always check the main server's error log. If
you see nothing in a site-specific log file even after you made the
request, check the main log. Maybe the config told it to write to a
file in a folder that didn't exist. Apache will create a missing log
file, but will not create a missing folder. Wink Review the main config
file. Make sure you haven't got duplicate entries. Comment out the
other VirtualHosts until you get one working, then add one at a time.
You basically need to learn how to do one site, then repeat the same
process. Once you understand enough to this point, you can come up with
your own system, but you still do not ever want to place log files under
your DocumentRoot. ;-)

Leif



---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
" from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org
Back to top
Jim Jagielski
*nix forums beginner


Joined: 09 Feb 2005
Posts: 14

PostPosted: Wed Feb 09, 2005 7:25 pm    Post subject: Re: update mod_proxy_balancer load factors Reply with quote

The balancer has a built-in status/manager interface that
allows you to change balancer and worker properties.

dhay@lexmark.com wrote:
Quote:


Ok...but how would this update the mod_proxy_balancer?

I think one way would be to write a deamon which will check for load
average factor on your servers so you should send the request to least
loaded server or other way it can be to find out number of idle process
on these servers and send the request to the server with max number of
idle process.

Regards,
Love ..

dhay@lexmark.com wrote:

Hi,

I am using Apache to load balance a set of Tomcat servers. However, a
round-robin or simple load-factor algorithm is not sufficient.

I am wondering therefore, if there is any way to programatically update
the
mod_proxy_balancer load factors on the fly?

Many thanks,

David




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










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



--
===========================================================================
Jim Jagielski [|] jim@jaguNET.com [|] http://www.jaguNET.com/
"There 10 types of people: those who read binary and everyone else."

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

Back to top
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 61 [905 Posts] Goto page:  1, 2, 3, ..., 59, 60, 61 Next
View previous topic :: View next topic
The time now is Tue Dec 02, 2008 5:45 am | All times are GMT
navigation Forum index » Apps » Apache
Jump to:  

Similar Topics
Topic Author Forum Replies Last Post
No new posts howto log in from one bsd-server to another and move file... Tobias Steer FreeBSD 3 Thu Jul 20, 2006 10:02 am
No new posts Binary Files Ronin C++ 8 Wed Jul 19, 2006 3:12 pm
No new posts Bug#378877: ITP: libsvm-doc -- documentation and example ... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 1:50 pm
No new posts Bug#378873: ITP: libsvm0-dev -- development files for Lib... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 1:20 pm
No new posts Bug#378866: ITP: libnanohttp1-dev -- header files for nan... Rudi Cilibrasi devel 0 Wed Jul 19, 2006 12:40 pm

Remortgaging | Mobile Phone | Loans | Debt Consolidation | Big Brother 9
Copyright © 2004-2005 DeniX Solutions SRL
 
Other DeniX Solutions sites: Unix/Linux blog |  electronics forum |  medicine forum |  science forum | 
Privacy Policy


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.3601s ][ Queries: 16 (0.1465s) ][ GZIP on - Debug on ]