Given this server configuration (this is a front-end lightweight
Apache, which uses mod_accel to proxy to a back-end mod_perl Apache):
ServerName www.shoujoai.com
ServerAlias shoujoai.com
AccelPass / http://127.0.0.1:8002/
and given a file called redir.asp, which contains
When I use perl from the command line, my @INC is this:
$ perl -eprint join(':', @INC)
/usr/lib/perl5/5.6.1/i386-linux:/usr/lib/perl5/5.6.1:/usr/lib/perl5/site_perl/5.6.1/i386-linux:/usr/lib/perl5/site_perl/5.6.1:/usr/lib/perl5/site_perl/5.6.0:/usr/lib/perl5/site_perl:.
When I print @INC from a
On Sat, Nov 30, 2002 at 12:45:50PM -0500, Jason Czerak (Jasnik) wrote:
Is the 'front end' and 'back end' apache servers on the 'same box'?
My problme is that I had one web server. and I did the FE and BE bit
(BE being on the loop back address). to free up some major resources
since mod_perl
These days, Apache 2 has become the default version of Apache.
On my site, I run a front end Apache and a back end Apache.
Front end: Apache 1.x, has mod_accel module which is like mod_proxy,
but downloads all the data from the backend ASAP and frees it up
immediately, so that a slow modem
I couldn't find a contact address on the modperl website, so I'm
posting this here...
On http://perl.apache.org/products/products.html there is an outdated
link to mwForum. The new URL is: http://www.mwforum.org/
On Tue, Nov 26, 2002 at 11:40:00AM -0800, Grant Cooper wrote:
What do yo mean a modem will tie up the Server? I've never heard this
before.
Let's say you have a mod_perl page that returns a 100k document, and a
28.8k modem downloads that document.
The mod_perl process that is serving that
On Tue, Nov 26, 2002 at 03:11:47PM -0800, Grant Cooper wrote:
Is there any documention of a HOWTO or a tutorial about a lightweight
front-end proxy that loads the data from the mod_perl
I wrote a guide a while back on how to install mod_accel and
mod_deflate with Apache. It's for Apache 1.3.x;
On Fri, Jul 26, 2002 at 06:40:31PM -0400, [EMAIL PROTECTED] wrote:
1: The usermod command doesn't get executed. I have tried debugging
this...by having a log file(/usr/local/apache/logs) and the mod_perl
process does open the wrapper script..but then does nothing. It does
not execute the
I'm trying to add a RewriteRule, but it's not working:
RewriteEngine on
RewriteCond %{HTTP_HOST} !^www.animewallpapers.com(:80)?$
RewriteCond %{HTTP_HOST} !^64.246.28.97(:80)?$
RewriteRule ^/(.*) http://www.animewallpapers.com/$1 [L,R]
I want to make it so that if someone accesses that website
On Mon, Jun 24, 2002 at 06:12:04PM -0400, Robert Landrum wrote:
I would think that you would need something like the following.
Location /
SetHandler rewrite accel
# rewrite rules and accel rules
/Location
Or something like that... Your goal is to stack these handlers, so that
On Fri, Jun 21, 2002 at 05:31:00AM -0700, Ask Bjoern Hansen wrote:
64bit binaries are exploitable. There are also exploits for several
32bit systems.
Does anyone know if Red Hat Linux 7.2 on i686 is vulnerable to the
remote shell (not the DoS) exploit?
On Sun, May 19, 2002 at 03:56:43AM -0500, [EMAIL PROTECTED] wrote:
As for risky. Well the whole point of the script system is to add a pop mail
box for a user. But in order to do this i have to do the following:
add user to the passwd/shadow file
add user to the virtusertable and
Does anyone know how I can cancel AccelNoPass in mod_accel?
I have the following configuration in httpd.conf:
AccelNoPass ~\*.cgi$ ~\*.html$
VirtualHost ...
ProxyPass / http://localhost:8001/
...
/VirtualHost
I want to make it so that inside the VirtualHost container, ~\*.cgi
will not be in
The following webpage on a mod_deflate enabled server is not working
correctly in some browsers:
http://www.aaanime.net/pmak/sylphiel/
If I telnet www.aaanime.net 80 and send the following commands:
GET /pmak/sylphiel/ HTTP/1.1
Host: www.aaanime.net
Accept-Encoding: gzip
then the data it
Has anyone been using mod_accel on a website that has HTTP file uploads?
I'm having trouble getting file uploads to work with Internet Explorer 5.5,
Netscape 4.7, or Opera 6 through mod_accel 1.0.10. If I access the backend
Apache directly, it works.
I can upload a 1491 byte file, but I can't
On Sun, Jan 06, 2002 at 04:16:00PM +0200, Issac Goldstand wrote:
I use it with uploads and it all works fine. What I still haven't
tested is the UPLOAD_HOOK functionality of Apache::Request under it, but
I'll get around to that shortly.
Hmm, I wonder if it's dependent on the CPAN module
Never mind, I'm an idiot. I just took a look at the error_log of my
frontend and the problem became clear.
[Sun Jan 6 09:42:04 2002] [error] [client 206.173.36.189] (13)Permission denied:
accel: can't create tempfile /usr/local/apache/cache/tmpFtYxlf
The following configuration:
RedirectPermanent /~arcimpulse http://arcimpulse.shoujoai.com
AccelPass / http://127.0.0.1:8002/
did not work as I expected. Instead of being redirected, /~arcimpulse gets
passed to port 8002 (except for URLs that match AccelNoPass), so I had to
put
Is there a way to specify an AccelNoPass directive (from mod_accel) that
only affects a certain directory?
For example, consider the following scenario:
AccelPass /~user1/ http://127.0.0.1:8001/
AccelNoPass ~*\.gif$ ~*\.jpg$
AccelPass /~user2/ http://127.0.0.1:8002/
AccelNoPass ~*\.gif$
On Fri, 28 Dec 2001, Igor Sysoev wrote:
Yes, it doesn't. It's difficult to figure proxied URL parts in mod_rewrite
so I have to make explicit directive to specify reverse rewrite.
I will make it today or tomorrow.
Great!
I think it should have reverse syntax:
AccelReverse
Does mod_accel have a reverse proxying directive (similar to the
ProxyPassReverse directive in mod_proxy) in order to make redirects work?
I believe the AccelPass directive automatically handles reverse
proxying, but what if I used RewriteRule instead:
RewriteRule ^(.*)\.asp$
I took a look at the winning design at
http://domm.zsi.at/modperl-site-domm/ and I see a significant problem for
people in 800x600 resolution (which is pretty common still, and I use it):
A horizontal scrollbar appears at the bottom of the screen.
Can't this be fixed? Also, the left sidebar
On Thu, 20 Dec 2001, Jeremy Howard wrote:
Note that mod_accel can also be called by utilising the mod_rewrite [P]
directive, just like with mod_proxy.
If I put [P] in a RewriteRule, how does Apache know whether I want it to
use mod_proxy or mod_accel?
AccelSet* adds X-* headers to the
Recently, I've been using Apache::ASP to program a new version of an
existing website that gets over 5 million page views per month. This
website will have to fit on a RaQ4i (450MHz) server, so I'm pretty
conscious about performance. Security is also important due to the
popularity of the site.
On port 80, I'm running a non-mod_perl httpd.
On port 8001, I'm running a mod_perl httpd.
Port 80 is ProxyPassing to port 8001 like this:
RewriteRule ^/(.+)\.asp$ http://127.0.0.1:8001/$1.asp [p]
The httpds have different DocumentRoots however, so if I visit
http://mysite.com/ it will return a
My current solution is to touch index.asp in the port 80 DocumentRoot
and have DirectoryIndex index.asp so that it knows to ProxyPass those
requests. I'd have to touch index.asp manually for every directory,
though. Is there a better way around this?
RewriteRule ^/$
On Mon, 29 Oct 2001, Joshua Chamas wrote:
Complete requests: 1000
Failed requests:22
(Connect: 0, Length: 22, Exceptions: 0)
If ApacheBench complains about length problems, it means
that the length of subsequent requests differs from the
output length of the first
I'm using ApacheBench to perform stress testing on my mod_perl server.
It's not always working, though. Observe the following two runs: (first is
Broken pipe; second has some failed requests)
[pmak@sg1 bin]$ ./ab -n 1000 -c 10 http://65.119.108.120:8080/
This is ApacheBench, Version 1.3c
I've had about two years of experience with perl, and one year of
experience with mod_perl and MySQL.
I've been doing contract programming jobs for people and charged by the
hour. The rate I currently charge them ($40) was kind of chosen randomly.
I'd like to find out if this figure is too
I tried telneting to your web server to see what's going on. Look at this:
$ telnet www.nonserviam.net 80
Trying 65.34.152.103...
Connected to nonserviam.net.
Escape character is '^]'.
GET /modperl/index.pl HTTP/1.1
Host: www.nonserviam.net
Hello!Connection closed by foreign host.
The HTTP
I have a RaQ4i server (450MHz AMD K-6 processor). If I have 20 mod_perl
httpd processes running concurrently, then the system's load average goes
up over 10.0 and CPU usage is 100%. The machine has RAM to spare, so
swapping is not the problem.
Is that the norm for a 450MHz server, or is there
On Wed, 1 Aug 2001, Henrik Edlund wrote:
And while we are discussing not cutting corners, those who still use
MySQL should switch to a real DBMS before they even think of abstracting
the SQL away from their Perl code.
That people still use MySQL really shows how many lusers there are with
I have a CGI application where I do:
require 'db.pl';
where db.pl defines some functions and variables related to connecting to
the database, and then executes C$dbh = DBI-connect(...).
I tried to convert this application to modperl, but I ran into the problem
that require did not execute
On Tue, 31 Jul 2001, Kyle Oppenheim wrote:
Apache::Reload works by performing a stat on every file in %INC and calling
require for all the files that changed. It's quite possible that some of
the files in %INC are using relative paths (often '.' is in @INC). So, Perl
was able to load the
On Mon, 30 Jul 2001, Stas Bekman wrote:
no (re-)?read the manpage. it's all there.
It's possible that Matt wants to add other options to the SYNOPSIS
section, as not everybody bothers to read the manpage. I think people are
used to see all of the functionality covered in SYNOPSIS.
In
I have a front-end lightweight Apache proxying Apache::ASP scripts to a
backend mod_perl Apache. I am experiencing problems with query strings.
In my lightweight httpd.conf, I have:
RewriteRule ^/(.*)\.asp http://66.33.85.239/$1.asp [p]
If I go to
On Mon, 30 Jul 2001, Scott Kister wrote:
uselargefiles=define
Have you tried turning off uselargefiles?
I might be off track here, but recently I tried to install mod_perl on
Solaris 5.8. It kept segfaulting until I turned off uselargefiles and
binary compatibility with 5.00503. You could try
On Mon, 30 Jul 2001, Perrin Harkins wrote:
But if I go to http://www.buildreferrals.com/rotatorstats.asp?login=pmak0
(that's the same URL, but with a query string added), then I get a 404
Not Found error.
Of course you do. Your regex ^/(.*)\.asp doesn't match that URL with
the query
I have a site running mod_perl that I'm constantly making changes to.
What do I have to do in order to make it so that when I edit any file
(either a .pl script directly called on the site, or a .pm module that my
perl script uses), then the changes will take effect automatically? I
would rather
One thing caught my eye; how come mod_perl handler (808.4 hits per
second) performed better than HTML static (768.2 hits per second)?
And sorry for my newbie-ish question, but what is the difference
between mod_perl handler and Apache::Registry mod_perl?
In the recent Hello World 2000 benchmark posted by Joshua Chamas, mod_perl
handler was shown to be even faster than static HTML (at least for running
hello world), and twice as fast as using Apache::Registry to run a perl
script.
Does this mean that if there's a heavily used script on my system
On Wed, 27 Jun 2001, will trillich wrote:
okay -- but if you want some of your site to be indexed by the
standard mod_autoindex, yet have mod_perl intervene for certain
subtrees, you'll find that mod_perl never gets a chance at it
because the mod_autoindex gadjets catch it at an earlier
understand the contents of the error log, try posting them
here.
-Philip Mak ([EMAIL PROTECTED])
of images in different directories).
Is there a way to ProxyPass by file extension or something?
-Philip Mak ([EMAIL PROTECTED])
do you make it proxy?
-Philip Mak ([EMAIL PROTECTED])
to Apache instead of as a DSO.
-Philip Mak ([EMAIL PROTECTED])
;
return $_;
}
but I can't get it to work like that.
-Philip Mak ([EMAIL PROTECTED])
how to make
a usable website.
I've seen too many corporate websites that load slow, and is hard to find
any *useful* information in them. A bad offender that I can think of off
the top of my head is http://www.advertising.com/.
-Philip Mak ([EMAIL PROTECTED])
On Fri, 27 Apr 2001, Joel W. Reed wrote:
%@ LANGUAGE=PerlScript %
%
do neat perl things
%
Have you tried this:
@ LANGUAGE=PerlScript %%
do neat perl things
%
-Philip Mak ([EMAIL PROTECTED])
0 failed requests and 18.83 requests per second when I run ab
with -n 1000 -c 50.
-Philip Mak ([EMAIL PROTECTED])
handles 720 requests per
second, while Boa only handles 475.
- thttpd supports chroot and throttling. Boa does not.
-Philip Mak ([EMAIL PROTECTED])
the prompt is because /etc/profile
contains the command HOSTNAME=`/bin/hostname`. When you're in a
non-interactive environment, that's not available.
Try this:
my $hostname = `/bin/hostname`;
-Philip Mak ([EMAIL PROTECTED])
. But I'm using Apache::DBI, so should I need
to do that?
-Philip Mak ([EMAIL PROTECTED])
of that.
If a process starts at 10M and grows to 80M that's 70M per process,
_unshared_ for sure. Not good.
I thought it was shared, because under top, SHARE was almost as big as
RSS.
-Philip Mak ([EMAIL PROTECTED])
/startup.pl
#!/usr/bin/perl
# For security reasons, this file is owned by root.
use lib qw(/home/animel/www/include);
1;
-Philip Mak ([EMAIL PROTECTED])
this way I
only need one executable). Should I recompile it statically linked?
-Philip Mak ([EMAIL PROTECTED])
y see port 80.
Does anyone know of a way to configure Apache so that it will pass port 80
traffic onto port 8080 somehow, without having access to modify the
binary? It would have to do this without needing to spawn a child for
every request though. Or is this impossible?
Thanks,
-Philip M
# Doesn't work. Children still get tied up serving requests.
#ProxyPass / http://www.animewallpapers.com:8080/
#ProxyPassReverse / http://www.animewallpapers.com:8080/
That doesn't get me around the limit of 41 Apache processes...
-Philip Mak ([EMAIL PROTECTED])
On Thu, 22 Feb 2001, Stathy
86M 85032 S 0 0.3 22.9 0:00 httpd
Does anyone have suggestions on how to find out the problem/fix it?
The httpd.conf has not been modified in a month, and the memory upgrade
was done just three days ago. So, AFAIK the only thing on the machine that
has changed is the amount of RAM.
-
unning fine.
Does anyone know how I can go about tracking the cause of the crash?
Thanks,
-Philip Mak ([EMAIL PROTECTED])
to my perl
startup file so that the messages would show the correct file:
use Carp ();
local $SIG{__WARN__} = \Carp::cluck;
...but they don't seem to have any effect after I added them and did an
"apachectl restart".
-Philip Mak ([EMAIL PROTECTED])
't been able to find any mirrors for it.
Thanks,
-Philip Mak ([EMAIL PROTECTED])
e have any suggestions on how to implement this? Is there an
existing tool for doing this? How can I evaluate modperl/Apache::ASP files
from the command line?
Thanks,
-Philip Mak ([EMAIL PROTECTED])
Apache or Squid
that ccs.htm depends on header.asp, footer.asp, series.dat and index.inc?)
Also, does this mess up the REMOTE_HOST variable, or is Apache smart
enough to replace that with X-Forwarded-For when the forwarded traffic is
being sent from a local priviledged process?
-Philip Mak
.
As for selection of scripting language, mod_perl is probably the most
versatile language. But as you know, it is also one of the harder ones to
learn. If you just want to do simple database sites, PHP or ASP might be a
better choice as it would probably take you less time to learn.
-Philip Mak ([EMAIL
t what is causing my server to become so slow (perhaps there's
some sort of benchmarking tool I can use?)
(2) fix it (if animewallpapers.com's ASP scripts is causing it, I would
have to figure out how to recode them more efficiently)
Thanks,
-Philip Mak ([EMAIL PROTECTED])
On Sat, 26 Aug 2000, Michael Robinton wrote:
apache_ssl and mod_perl co-exist nicely together, try that instead. I've
a couple of these in production environments that work very well.
I don't understand... what does SSL have to do with this?
-Philip Mak ([EMAIL PROTECTED])
Recently, I
may be needed for security purposes, but I think in the situation
mentioned above, it was excessive.
What do people think about this?
-Philip Mak ([EMAIL PROTECTED])
deliberately; it just
makes their connection not secure.
-Philip Mak ([EMAIL PROTECTED])
perl v5.6 or later, I think you can use "our" instead
of "my" and it will do what you want it to do.
As for why it acts this way, I'm not sure...perhaps someone else on this
mailing list can shed some light on this issue.
-Philip Mak ([EMAIL PROTECTED])
ng/warnings) as well
as the modperl mailing list archive (keyword "warning ASP" and "warnings
ASP") but could not find anything.
-Philip Mak ([EMAIL PROTECTED])
instead).
Is this a bug, or is it supposed to work like that?
-Philip Mak ([EMAIL PROTECTED])
hat is maintained by other webmasters. The other
webmasters don't even know how to use a UNIX shell, so I have to keep it
simple for them. If I used a binary file format I'd have to make them
learn the tools for changing it.
-Philip Mak ([EMAIL PROTECTED])
eturns its values. I can
require it, and then call the subroutine and get the return values, but
this seems kind of kludgy to me.
Does anyone have a better suggestion for maintaining human readable
flatfiles containing data to be read? Is there a good CPAN module for it
perhaps?
Thanks,
-
e script that caused the
problem, so sometimes I have to guess when my script uses #include file.
It would be nice if Apache::ASP would display the error message right
there on the webpage (a la IIS ASP).
-Philip Mak ([EMAIL PROTECTED])
allows the relative path specifications) can be used for this
purpose.
-Philip Mak ([EMAIL PROTECTED])
On Sat, 20 May 2000, Joshua Chamas wrote:
Ime Smits wrote:
| Well, I would like to suggest that you consider including !--#include
| virtual-- in the Apache::ASP distribution, so
nc.
I worked around this by doing "PerlSetVar IncludesDir /home/goamembers/www"
(which is my DOCUMENT_ROOT), and then using includes such as:
!--#include file="/series/slayers/index.inc"--
!--#include file="/series/slayers/lina/index.inc"--
-Philip Mak ([EMAIL PROTECTED])
for this? (It is inconvenient
for me to use #include file instead since I need to include files relevant
to DOCUMENT_ROOT, as well as relevant to the location of the current file,
but I could use that as a last resort.)
Thanks,
-Philip Mak ([EMAIL PROTECTED])
ries';
/series/slayers/index.inc: $title .= '::The Slayers';
/series/slayers/lina/index.inc: $title .= '::Lina Inverse';
Is there a better way I can do this? Right now I'm thinking of either
trying to hack Apache::ASP to support #include virtual, or using absolute
pathnames or trying to put $ENV{'DO
al
behaves differently from include file (other than the way the
filename/pathname is interpreted, of course).
-Philip Mak ([EMAIL PROTECTED])
ted apache listening on localhost is the
best solution.
Wouldn't this require running one web server process for each user? I may
be wrong, but it seems to be simpler to just suid their scripts.
-Philip Mak ([EMAIL PROTECTED])
l .cgi/.pl files are transparently
(i.e. no need to put cgiwrap in the URL) suid'ed to the script owner
before being executed.
I also have ASP installed, and I'd like to be able to transparently suid
the .asp scripts too. Do you know how I could go about doing this?
Thanks,
-Philip Mak ([EMAIL PROTECTED])
82 matches
Mail list logo