You are viewing a plain text version of this content. The canonical link for it is here.
Posted to embperl@perl.apache.org by Ruben Safir <ru...@mrbrklyn.com> on 2001/11/04 19:29:41 UTC

Virtual Configurations

Hello

I'm having trouble getting a embperl to work on a virtual server.  The virtual
server is under the htdocs directory.  When I add a directory command in the
apache conf file, I loss access to the images subdirectory

SO the doc root is 
./htdocs

The virtual server is under 
./htodcs/nylinux 
	This I want to be a embperl enabled and is the virtual server nylxs.com
./htodcs/nylinux/images
	files in this directory is lost.


The perl-script commands seems to be ineffective in the virtual host
directories.
It all works without the 
<DIRECTORY "/usr/local/apache/htdocs/nylinux"> directive.


Ruben
-- 
Brooklyn Linux Solutions
http://www.mrbrklyn.com
http://www.brooklynonline.com
http://www.nylxs.com
http://www.nyfairuse.org

1-718-382-5752

http://www2.mrbrklyn.com/mp3/brooklyn_national_antheum.mp3
For Jim ---



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


Re: Virtual Configurations

Posted by Gerald Richter <ri...@ecos.de>.

> Really.
>
> If I have a normal embperl directory, then only
> html files should be in it?  I never knew that.
>

There could be in what you like, but if you don't use Apache
Files/FilesMatch or Embperl's EMBPERL_FILEMATCH, then every file is
processed thru Embperl, what doesn't make sense for images. Moreover Embperl
will try to find Perl code in it and if there is anything in it which looks
like [+ etc. it will take it, but this couldn't work of course of any sort
of binary files, like images

Gerald



-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------




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


Re: Virtual Configurations

Posted by Elvis <el...@goebusiness.com>.
You might want to consider using a <Files> or <FilesMatch> to set the PerlHandler so that only files that match (like .epl or whatever extension you use) are parsed by Embperl.

Bill "Elvis" Gibbs
goEbusiness.com - putting e-motion in your business
email - elvis@goebusiness.com work - 301-668-5090 cell - 301-748-6938

On Sun, 4 Nov 2001, Ruben Safir wrote:

> Really.
> 
> If I have a normal embperl directory, then only
> html files should be in it?  I never knew that.
> 
> I could have a tree 5 layers deep.  I can't beleive I 
> never stumbled on this before.  It must be my good planning.
> 
> Thanks
> 
> Ruben
> 
> On 2001.11.04 14:32:16 -0500 Gerald Richter wrote:
> >
> > I'm having trouble getting a embperl to work on a virtual server.  The
> virtual
> > server is under the htdocs directory.  When I add a directory command in
> the
> > apache conf file, I loss access to the images subdirectory
> >
> > SO the doc root is
> > ./htdocs
> >
> > The virtual server is under
> > ./htodcs/nylinux
> > This I want to be a embperl enabled and is the virtual server nylxs.com
> > ./htodcs/nylinux/images
> > files in this directory is lost.
> >
> 
> Because now all images are processed via Embperl, which makes no sense. You
> must disable the Perl handler for that subdirectory by haning a
> 
> <DIRECTORY "/usr/local/apache/htdocs/nylinux/images">
> SetHandler none
> </Directory>
> 
> Gerald
> 
> 
> -------------------------------------------------------------
> Gerald Richter    ecos electronic communication services gmbh
> Internetconnect * Webserver/-design/-datenbanken * Consulting
> 
> Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
> E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
> WWW:        http://www.ecos.de      Fax:      +49 6133 925152
> -------------------------------------------------------------
> 
> 
> -- 
> Brooklyn Linux Solutions
> http://www.mrbrklyn.com
> http://www.brooklynonline.com
> http://www.nylxs.com
> http://www.nyfairuse.org
> 
> 1-718-382-5752
> 
> http://www2.mrbrklyn.com/mp3/brooklyn_national_antheum.mp3
> For Jim ---
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: embperl-unsubscribe@perl.apache.org
> For additional commands, e-mail: embperl-help@perl.apache.org
> 
> 


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


Re: Virtual Configurations

Posted by Ruben Safir <ru...@mrbrklyn.com>.
Really.

If I have a normal embperl directory, then only
html files should be in it?  I never knew that.

I could have a tree 5 layers deep.  I can't beleive I 
never stumbled on this before.  It must be my good planning.

Thanks

Ruben

On 2001.11.04 14:32:16 -0500 Gerald Richter wrote:
>
> I'm having trouble getting a embperl to work on a virtual server.  The
virtual
> server is under the htdocs directory.  When I add a directory command in
the
> apache conf file, I loss access to the images subdirectory
>
> SO the doc root is
> ./htdocs
>
> The virtual server is under
> ./htodcs/nylinux
> This I want to be a embperl enabled and is the virtual server nylxs.com
> ./htodcs/nylinux/images
> files in this directory is lost.
>

Because now all images are processed via Embperl, which makes no sense. You
must disable the Perl handler for that subdirectory by haning a

<DIRECTORY "/usr/local/apache/htdocs/nylinux/images">
SetHandler none
</Directory>

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------


-- 
Brooklyn Linux Solutions
http://www.mrbrklyn.com
http://www.brooklynonline.com
http://www.nylxs.com
http://www.nyfairuse.org

1-718-382-5752

http://www2.mrbrklyn.com/mp3/brooklyn_national_antheum.mp3
For Jim ---



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


Re: Virtual Configurations

Posted by Gerald Richter <ri...@ecos.de>.
>
> I'm having trouble getting a embperl to work on a virtual server.  The
virtual
> server is under the htdocs directory.  When I add a directory command in
the
> apache conf file, I loss access to the images subdirectory
>
> SO the doc root is
> ./htdocs
>
> The virtual server is under
> ./htodcs/nylinux
> This I want to be a embperl enabled and is the virtual server nylxs.com
> ./htodcs/nylinux/images
> files in this directory is lost.
>

Because now all images are processed via Embperl, which makes no sense. You
must disable the Perl handler for that subdirectory by haning a

<DIRECTORY "/usr/local/apache/htdocs/nylinux/images">
SetHandler none
</Directory>

Gerald


-------------------------------------------------------------
Gerald Richter    ecos electronic communication services gmbh
Internetconnect * Webserver/-design/-datenbanken * Consulting

Post:       Tulpenstrasse 5         D-55276 Dienheim b. Mainz
E-Mail:     richter@ecos.de         Voice:    +49 6133 925131
WWW:        http://www.ecos.de      Fax:      +49 6133 925152
-------------------------------------------------------------



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