perl-embperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Etienne Boulet <ebou...@123certification.com>
Subject apache, webdav, embperl
Date Thu, 24 May 2007 12:31:55 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
</head>
<body bgcolor="#ffffff" text="#000000">
Hello,
<br>
<br>
I'm trying to run apache, embperl and webdav together.
<br>
<br>
apache 2.0.58-r2
<br>
embperl 2.0_rc4
<br>
mod_perl 2.0.3-r1
<br>
<br>
Here's my problem, I have 2 aliases in my httpd.conf like
<br>
<br>
# Web for Web (a Web alias for Web visitors)
<br>
Alias "<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>website"
"/var/www/localhost/htdocs<span class="moz-txt-tag">/</span></i>"
<br>
# DAV for Web (a DAV alias to update Web content)
<br>
Alias "<i class="moz-txt-slash"><span class="moz-txt-tag">/</span>websitedav"
"/var/www/localhost/htdocs<span class="moz-txt-tag">/</span></i>"
<br>
<br>
My 45_mod_dav.conf looks like :
<br>
<br>
***************************************
<br>
&lt;IfDefine DAV&gt;
<br>
&nbsp; &lt;IfModule !mod_dav.c&gt;
<br>
&nbsp;&nbsp;&nbsp; LoadModule dav_module&nbsp;&nbsp;&nbsp; modules/mod_dav.so
<br>
&nbsp; &lt;/IfModule&gt;
<br>
&lt;/IfDefine&gt;
<br>
&lt;IfDefine DAV_FS&gt;
<br>
&nbsp; &lt;IfModule !mod_dav_fs.c&gt;
<br>
&nbsp;&nbsp;&nbsp; LoadModule dav_fs_module&nbsp;&nbsp; modules/mod_dav_fs.so
<br>
&nbsp; &lt;/IfModule&gt;
<br>
&lt;/IfDefine&gt;
<br>
&lt;IfModule mod_dav.c&gt;
<br>
&nbsp;&nbsp;&nbsp; DavMinTimeout 600
<br>
&nbsp;&nbsp;&nbsp; &lt;Location /websitedav&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Dav On
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
ForceType text/plain
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AuthType Basic
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AuthName "Welcome on TITINE's WebDAV"
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AuthUserFile <i class="moz-txt-slash"><span
 class="moz-txt-tag">/</span>var/dav<span class="moz-txt-tag">/</span></i>.davpasswd
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Limit PATCH PROPPATCH POST PUT DELETE MKCOL COPY MOVE
LOCK UNLOCK&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Require valid-user
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/Limit&gt;
<br>
&nbsp;&nbsp;&nbsp; &lt;/Location&gt;
<br>
&lt;/IfModule&gt;
<br>
&lt;IfModule mod_dav_fs.c&gt;
<br>
&nbsp;&nbsp;&nbsp; # Location of the WebDAV lock database.
<br>
&nbsp;&nbsp;&nbsp; DavLockDB /var/lib/dav/lockdb
<br>
&lt;/IfModule&gt;
<br>
***************************************
<br>
<br>
And my 78_mod_embperl.conf looks like :
<br>
<br>
***************************************
<br>
&lt;IfDefine EMBPERL&gt;
<br>
&nbsp; &lt;IfModule !mod_embperl.c&gt;
<br>
&nbsp;&nbsp;&nbsp; LoadModule&nbsp; embperl_module modules/mod_embperl.so
<br>
&nbsp; &lt;/IfModule&gt;
<br>
&lt;/IfDefine&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;IfModule mod_embperl.c&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PerlModule Embperl
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
AddType text/html .htm
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;Files *.htm&gt;
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
SetHandler&nbsp; perl-script
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
PerlHandler Embperl
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
Options&nbsp;&nbsp;&nbsp;&nbsp; ExecCGI
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
&lt;/files&gt;
<br>
&lt;/ifModule&gt;
<br>
***************************************
<br>
<br>
When I want to edit my webpage via webdav with the /websitedav alias
all of the perl code in my web pages is already interpreted.
<br>
Is there a way to tell EmbPerl not to interprete the perl code in my
web page when I got through the websitedav alias ?
<br>
<br>
Thank you
<br>
<br>
Etienne Boulet
</body>
</html>


---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
For additional commands, e-mail: embperl-help@perl.apache.org


Mime
View raw message