Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ModPerl: Embperl

apache, webdav, embperl

 

 

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded


eboulet at 123certification

May 24, 2007, 5:31 AM

Post #1 of 4 (1616 views)
Permalink
apache, webdav, embperl

Hello,

I'm trying to run apache, embperl and webdav together.

apache 2.0.58-r2
embperl 2.0_rc4
mod_perl 2.0.3-r1

Here's my problem, I have 2 aliases in my httpd.conf like

# Web for Web (a Web alias for Web visitors)
Alias "/website" "/var/www/localhost/htdocs/"
# DAV for Web (a DAV alias to update Web content)
Alias "/websitedav" "/var/www/localhost/htdocs/"

My 45_mod_dav.conf looks like :

***************************************
<IfDefine DAV>
<IfModule !mod_dav.c>
LoadModule dav_module modules/mod_dav.so
</IfModule>
</IfDefine>
<IfDefine DAV_FS>
<IfModule !mod_dav_fs.c>
LoadModule dav_fs_module modules/mod_dav_fs.so
</IfModule>
</IfDefine>
<IfModule mod_dav.c>
DavMinTimeout 600
<Location /websitedav>
Dav On
ForceType text/plain
AuthType Basic
AuthName "Welcome on TITINE's WebDAV"
AuthUserFile /var/dav/.davpasswd
<Limit PATCH PROPPATCH POST PUT DELETE MKCOL COPY MOVE LOCK UNLOCK>
Require valid-user
</Limit>
</Location>
</IfModule>
<IfModule mod_dav_fs.c>
# Location of the WebDAV lock database.
DavLockDB /var/lib/dav/lockdb
</IfModule>
***************************************

And my 78_mod_embperl.conf looks like :

***************************************
<IfDefine EMBPERL>
<IfModule !mod_embperl.c>
LoadModule embperl_module modules/mod_embperl.so
</IfModule>
</IfDefine>
<IfModule mod_embperl.c>
PerlModule Embperl
AddType text/html .htm
<Files *.htm>
SetHandler perl-script
PerlHandler Embperl
Options ExecCGI
</files>
</ifModule>
***************************************

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.
Is there a way to tell EmbPerl not to interprete the perl code in my web page when I got through the websitedav alias ?

Thank you

Etienne Boulet --------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe [at] perl For additional commands, e-mail: embperl-help [at] perl


wolfgang at kinkeldei

May 24, 2007, 6:22 AM

Post #2 of 4 (1474 views)
Permalink
Re: apache, webdav, embperl [In reply to]

Am 24.05.2007 um 14:31 schrieb Etienne Boulet:

> Hello,
>
> I'm trying to run apache, embperl and webdav together.
>
> apache 2.0.58-r2
> embperl 2.0_rc4
> mod_perl 2.0.3-r1
>
> Here's my problem, I have 2 aliases in my httpd.conf like
>
> # Web for Web (a Web alias for Web visitors)
> Alias "/website" "/var/www/localhost/htdocs/"
> # DAV for Web (a DAV alias to update Web content)
> Alias "/websitedav" "/var/www/localhost/htdocs/"

Why don't you use two <Virtualhost> entries eg: "dav.yoursite.tld"
and "www.yoursite.tld" instead of using the aliases?
One <Virtualhost> is told to use Embperl, the other is told to use
DAV. Both Virtual hosts might share the same IP unless SSL is used.


> My 45_mod_dav.conf looks like :
>
> ***************************************
> <IfDefine DAV>
> <IfModule !mod_dav.c>
> LoadModule dav_module modules/mod_dav.so
> </IfModule>
> </IfDefine>
> <IfDefine DAV_FS>
> <IfModule !mod_dav_fs.c>
> LoadModule dav_fs_module modules/mod_dav_fs.so
> </IfModule>
> </IfDefine>
> <IfModule mod_dav.c>
> DavMinTimeout 600
> <Location /websitedav>
> Dav On
> ForceType text/plain
> AuthType Basic
> AuthName "Welcome on TITINE's WebDAV"
> AuthUserFile /var/dav/.davpasswd
> <Limit PATCH PROPPATCH POST PUT DELETE MKCOL COPY MOVE
> LOCK UNLOCK>
> Require valid-user
> </Limit>
> </Location>
> </IfModule>
> <IfModule mod_dav_fs.c>
> # Location of the WebDAV lock database.
> DavLockDB /var/lib/dav/lockdb
> </IfModule>
> ***************************************
>
> And my 78_mod_embperl.conf looks like :
>
> ***************************************
> <IfDefine EMBPERL>
> <IfModule !mod_embperl.c>
> LoadModule embperl_module modules/mod_embperl.so
> </IfModule>
> </IfDefine>
> <IfModule mod_embperl.c>
> PerlModule Embperl
> AddType text/html .htm
> <Files *.htm>
> SetHandler perl-script
> PerlHandler Embperl
> Options ExecCGI
> </files>
> </ifModule>
> ***************************************
>
> 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.
> Is there a way to tell EmbPerl not to interprete the perl code in
> my web page when I got through the websitedav alias ?



Regards,

Wolfgang Kinkeldei

--

' /\_/\ ' .print[split??,"".(($/=q|Cms)+-03467:;<=|)=~tr!C-z -B! -z!)x
'( o.o )' .$/]->[hex]foreach split qr<>,qq+1ecd039ad65b025b8063475b+||
' > ^ < ' .q<!-- Wolfgang Kinkeldei - mailto:wolfgang [at] kinkeldei -->
Attachments: smime.p7s (2.37 KB)


richter at ecos

May 25, 2007, 9:46 AM

Post #3 of 4 (1482 views)
Permalink
RE: apache, webdav, embperl [In reply to]

You need to put your webdav and your Embperl definition inside of two
different <Location> blocks, so Apache knows what to do when you request
a page

Gerald


------------------------------------------------------------------------
--
Gerald Richter ECOS electronic communication services GmbH
******************* SECURING YOUR NETWORK ********************

Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz
E-Mail: richter [at] ecos Voice: +49 6133 939-122
WWW: http://www.BB-5000.info Fax: +49 6133 939-333

Sitz der Gesellschaft: Dienheim; AG Mainz HRB 6889; GF: W.Heck,
G.Richter
------------------------------------------------------------------------
--



> -----Original Message-----
> From: Etienne Boulet [mailto:eboulet [at] 123certification]
> Sent: Thursday, May 24, 2007 2:32 PM
> To: embperl [at] perl
> Subject: apache, webdav, embperl
>
> Hello,
>
> I'm trying to run apache, embperl and webdav together.
>
> apache 2.0.58-r2
> embperl 2.0_rc4
> mod_perl 2.0.3-r1
>
> Here's my problem, I have 2 aliases in my httpd.conf like
>
> # Web for Web (a Web alias for Web visitors) Alias "/website"
> "/var/www/localhost/htdocs/"
> # DAV for Web (a DAV alias to update Web content) Alias
> "/websitedav" "/var/www/localhost/htdocs/"
>
> My 45_mod_dav.conf looks like :
>
> ***************************************
> <IfDefine DAV>
> <IfModule !mod_dav.c>
> LoadModule dav_module modules/mod_dav.so
> </IfModule>
> </IfDefine>
> <IfDefine DAV_FS>
> <IfModule !mod_dav_fs.c>
> LoadModule dav_fs_module modules/mod_dav_fs.so
> </IfModule>
> </IfDefine>
> <IfModule mod_dav.c>
> DavMinTimeout 600
> <Location /websitedav>
> Dav On
> ForceType text/plain
> AuthType Basic
> AuthName "Welcome on TITINE's WebDAV"
> AuthUserFile /var/dav/.davpasswd
> <Limit PATCH PROPPATCH POST PUT DELETE MKCOL COPY
> MOVE LOCK UNLOCK>
> Require valid-user
> </Limit>
> </Location>
> </IfModule>
> <IfModule mod_dav_fs.c>
> # Location of the WebDAV lock database.
> DavLockDB /var/lib/dav/lockdb
> </IfModule>
> ***************************************
>
> And my 78_mod_embperl.conf looks like :
>
> ***************************************
> <IfDefine EMBPERL>
> <IfModule !mod_embperl.c>
> LoadModule embperl_module modules/mod_embperl.so
> </IfModule>
> </IfDefine>
> <IfModule mod_embperl.c>
> PerlModule Embperl
> AddType text/html .htm
> <Files *.htm>
> SetHandler perl-script
> PerlHandler Embperl
> Options ExecCGI
> </files>
> </ifModule>
> ***************************************
>
> 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.
> Is there a way to tell EmbPerl not to interprete the perl
> code in my web page when I got through the websitedav alias ?
>
> Thank you
>
> Etienne Boulet
> --------------------------------------------------------------
> ------- To unsubscribe, e-mail:
> embperl-unsubscribe [at] perl For additional commands,
> e-mail: embperl-help [at] perl ** Virus checked by
> BB-5000 Mailfilter ** !DSPAM:416,4655876a89271732510227!
>
>

** Virus checked by BB-5000 Mailfilter **

---------------------------------------------------------------------
To unsubscribe, e-mail: embperl-unsubscribe [at] perl
For additional commands, e-mail: embperl-help [at] perl


eboulet at 123certification

May 25, 2007, 2:01 PM

Post #4 of 4 (1489 views)
Permalink
Re: apache, webdav, embperl [In reply to]

Thanks a lot Mr. Ritcher and Kinkeldei,

I've figured out a way to make it work with the virtual hosts.

Maybe you could help me with an other issue. For the past few years we use to manage our website with MS Frontpage and the FrontPage Server Extension (FPSE) on our Linux server.
Since Microsoft stopped supporting the FPSE for linux and windows we are trying to find a replacement solution.

I was trying to use Webdav but it does not seem to be very user friendly. The big advantage provided by FPSE was that we could connect to the remote server via Microsoft Frontpage and easily update web pages. Even people with partial knowledge of HTML could edit the webpages.

Our website contains approximatly 20,000 pages so the webdav synchronisation (remote/local) could take a lot of time and that's why we are looking for a way to edit the pages directly on the remote server with a user friendly application.

Any ideas ?

Etienne Boulet

Gerald Richter - ECOS GmbH wrote:
You need to put your webdav and your Embperl definition inside of two different <Location> blocks, so Apache knows what to do when you request a page Gerald ------------------------------------------------------------------------ -- Gerald Richter ECOS electronic communication services GmbH ******************* SECURING YOUR NETWORK ******************** Post: Tulpenstrasse 5 D-55276 Dienheim b. Mainz E-Mail: richter [at] ecos Voice: +49 6133 939-122 WWW: http://www.BB-5000.info"]http://www.BB-5000.info Fax: +49 6133 939-333 Sitz der Gesellschaft: Dienheim; AG Mainz HRB 6889; GF: W.Heck, G.Richter ------------------------------------------------------------------------ --
-----Original Message----- From: Etienne Boulet [mailto:eboulet [at] 123certification] Sent: Thursday, May 24, 2007 2:32 PM To: embperl [at] perl Subject: apache, webdav, embperl Hello, I'm trying to run apache, embperl and webdav together. apache 2.0.58-r2 embperl 2.0_rc4 mod_perl 2.0.3-r1 Here's my problem, I have 2 aliases in my httpd.conf like # Web for Web (a Web alias for Web visitors) Alias "/website" "/var/www/localhost/htdocs/" # DAV for Web (a DAV alias to update Web content) Alias "/websitedav" "/var/www/localhost/htdocs/" My 45_mod_dav.conf looks like : *************************************** <IfDefine DAV> <IfModule !mod_dav.c> LoadModule dav_module modules/mod_dav.so </IfModule> </IfDefine> <IfDefine DAV_FS> <IfModule !mod_dav_fs.c> LoadModule dav_fs_module modules/mod_dav_fs.so </IfModule> </IfDefine> <IfModule mod_dav.c> DavMinTimeout 600 <Location /websitedav> Dav On ForceType text/plain AuthType Basic AuthName "Welcome on TITINE's WebDAV" AuthUserFile /var/dav/.davpasswd <Limit PATCH PROPPATCH POST PUT DELETE MKCOL COPY MOVE LOCK UNLOCK> Require valid-user </Limit> </Location> </IfModule> <IfModule mod_dav_fs.c> # Location of the WebDAV lock database. DavLockDB /var/lib/dav/lockdb </IfModule> *************************************** And my 78_mod_embperl.conf looks like : *************************************** <IfDefine EMBPERL> <IfModule !mod_embperl.c> LoadModule embperl_module modules/mod_embperl.so </IfModule> </IfDefine> <IfModule mod_embperl.c> PerlModule Embperl AddType text/html .htm <Files *.htm> SetHandler perl-script PerlHandler Embperl Options ExecCGI </files> </ifModule> *************************************** 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. Is there a way to tell EmbPerl not to interprete the perl code in my web page when I got through the websitedav alias ? Thank you Etienne Boulet -------------------------------------------------------------- ------- To unsubscribe, e-mail: embperl-unsubscribe [at] perl For additional commands, e-mail: embperl-help [at] perl ** Virus checked by BB-5000 Mailfilter ** !DSPAM:416,4655876a89271732510227!
** Virus checked by BB-5000 Mailfilter **

--------------------------------------------------------------------- To unsubscribe, e-mail: embperl-unsubscribe [at] perl For additional commands, e-mail: embperl-help [at] perl

ModPerl embperl RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.