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])
s/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{'DOCUMENT_ROOT'} in the file path.
-Philip Mak ([EMAIL PROTECTED])
the wrong way?
> If you want to have a nicer /path_info scheme, we'll
> probably have to add a patch for you to have Apache::ASP
> not be bound to executing real files as it is currently.
> This would be more similar to the way Mason does things.
Well, I would like to suggest th
tions) 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 in the Apache::ASP distribution, so that included files use the
> > | same
ludesDir /home/goamembers/www"
(which is my DOCUMENT_ROOT), and then using includes such as:
-Philip Mak ([EMAIL PROTECTED])
me the filename of the 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])
returns 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,
-Philip Ma
that they
can be edited by a text editor. The data that I am making includes an
index to content that 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])
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])
gain (I
had to use the 'do' command instead).
Is this a bug, or is it supposed to work like that?
-Philip Mak ([EMAIL PROTECTED])
usr/bin/perl5.00503, but relinking that to perl 5.6 had no effect.
Also, does ASP have a directive for turning on -w?
Thanks,
-Philip Mak ([EMAIL PROTECTED])
sion expiration
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])
work too.
They don't gain anything by spoofing http/https deliberately; it just
makes their connection not secure.
-Philip Mak ([EMAIL PROTECTED])
s.
If you are running 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])
those #include files to explicitly
specify /home/goamembers/www (ick)?
-Philip Mak ([EMAIL PROTECTED])
the first
place? Perhaps I should perform a kludge fix of doing a global search and
replace on all files to specify /home/goamembers/www in the path name so
that it will work for the moment, and then look into redesigning the code?
-Philip Mak ([EMAIL PROTECTED])
On Sat, 26 Aug 2000, Joshua Ch
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])
When I use perl from the command line, my @INC is this:
$ perl -e"print 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
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 contain
em such that all .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])
That's exactly the case here.
> proxying requests to a user-dedicated 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])
Does anyone know how I can cancel AccelNoPass in mod_accel?
I have the following configuration in httpd.conf:
AccelNoPass ~\*.cgi$ ~\*.html$
ProxyPass / http://localhost:8001/
...
I want to make it so that inside the VirtualHost container, ~\*.cgi
will not be in AccelNoPass. (The reason I ha
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 generi
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?
For those of you who have mod_accel and mod_deflate and need to
upgrade your Apache version due to the security exploit, I wrote a
document that tells exactly what to do from start to finish. I wrote
this because I was tired of having to dig up old mailing list posts to
figure out how to install t
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 v
On Mon, Jun 24, 2002 at 06:12:04PM -0400, Robert Landrum wrote:
> I would think that you would need something like the following.
>
>
> SetHandler rewrite accel
> # rewrite rules and accel rules
>
>
> Or something like that... Your goal is to stack these handlers, so that
> rewrite happens f
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
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 doesn'
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 doc
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 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
s to how to:
(1) find out 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])
other webhosts.
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.
ml
directory.
Does anyone 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])
being sent from a local priviledged process?
-Philip Mak ([EMAIL PROTECTED])
't been able to find any mirrors for it.
Thanks,
-Philip Mak ([EMAIL PROTECTED])
ollowing lines 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])
pache is running fine.
Does anyone know how I can go about tracking the cause of the crash?
Thanks,
-Philip Mak ([EMAIL PROTECTED])
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.
-
rewalls
can only 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?
Tha
# 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 20
e/animel/www/include/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])
hout mod_perl and one with; I set it up as a DSO since this way I
only need one executable). Should I recompile it statically linked?
-Philip Mak ([EMAIL PROTECTED])
.pl. The more
> the merrier.
Ok. I didn't think 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])
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])
L on the same
server gets 0 failed requests and 18.83 requests per second when I run ab
with "-n 1000 -c 50".
-Philip Mak ([EMAIL PROTECTED])
shows benchmarks where thttpd handles 720 requests per
second, while Boa only handles 475.
- thttpd supports chroot and throttling. Boa does not.
-Philip Mak ([EMAIL PROTECTED])
it.
The reason "echo $HOSTNAME" works from 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])
27; (Got an error reading communication packets)
Reading some other mailing list messages suggests that I did not do
$dbh->disconnect() properly. But I'm using Apache::DBI, so should I need
to do that?
-Philip Mak ([EMAIL PROTECTED])
a great resource about 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])
't get it to work like that.
-Philip Mak ([EMAIL PROTECTED])
t is statically linked to Apache instead of as a DSO.
-Philip Mak ([EMAIL PROTECTED])
ent directories).
Is there a way to ProxyPass by file extension or something?
-Philip Mak ([EMAIL PROTECTED])
make it send an HTTP
redirect. How do you make it proxy?
-Philip Mak ([EMAIL PROTECTED])
ic.shoujoai.com and the
scripts being in http://www.shoujoai.com.
-Philip Mak ([EMAIL PROTECTED])
re compiling this stuff.
If you don't understand the contents of the error log, try posting them
here.
-Philip Mak ([EMAIL PROTECTED])
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 s
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 t
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 "use"s), then the changes will take effect automatically? I
would rathe
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 http://www.buildreferrals.com/rotatorstats.asp,
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
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
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 th
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
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 db
When I have multiple virtual hosts running Apache::ASP (mod_perl), do they
need to run their own instance of Apache?
I've read through http://perl.apache.org/guide/multiuser.html and this is
what I've gathered:
1. A hacker with access to a virtual host on a mod_perl Apache can steal
the Apache::
I have two mod_perl programs on my site. One is in the directory "inr2",
and the other is in the directory "otherinr2".
These mod_perl programs have exactly the same code. Both of them do:
use cfg;
where cfg.pm is a file that's in both inr2 and otherinr2, but it's
different in these directories.
On Sat, 18 Aug 2001, David Wheeler wrote:
> I thought that the content would be returned to the browser before the
> logging phase was executed.
I think it makes the logging phase go first, so that it has the
opportunity to check identd on the browser.
> Is there any way to get the content hand
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 som
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 serv
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 high/t
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 <$Revisi
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 fi
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.
I
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 d
> > 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 ^/$ http:/
On Mon, 12 Nov 2001, Artem Litvinovich wrote:
> Since my freeBSD setup is a "virtual private server" from verio I
> cannot easily recompile+reinstall apache.
I have a virtual private server account from Verio too. What you could do,
is compile your own Apache and run it on a high port, then setu
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 req
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 seem
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$ http://127.0.0.1:
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 http://12
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$
Someon
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 RedirectPermament
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 up
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 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 sen
91 matches
Mail list logo