cgi-bin problem

Author Message

Michael Kress

Sunday 01 April 2007 7:47:59 am

Hi, on my vh based ez publish website site almost everything works, but I can't get access to /cgi-bin in order to execute some cgi script, I'm getting an 403 error with the following .htaccess . Any hints?

# Copy this file to a new file called .htaccess in your eZ publish root
# to make the site more secure in non-virtualhost mode (index.php used in urls).
#

php_value allow_call_time_pass_reference 0

<FilesMatch ".">
order allow,deny
deny from all
</FilesMatch>

<FilesMatch "(index\.php|\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf)$">
order allow,deny
allow from all
</FilesMatch>

# If you see "Forbidden" when trying to access root page of your site
# without 'index.php' appended, uncomment the following "Files" section.
# NOTE: replace "ezpublish-3.6.0" with base name of the directory
# where your eZ publish intallation resides.
# e.g. base name of "/sites/ezpublish/ezpublish-3.6.0" is "ezpublish-3.6.0".

#<Files "ezpublish-3.6.0">
#   order allow,deny
#   allow from all
#</Files>

RewriteEngine On
RewriteRule !\.(gif|jpe?g|png|css|js|html)|var(.+)storage.pdf(.+)\.pdf$ index.php

DirectoryIndex index.php

If I comment out the RewriteEngine, the RewriteRule and the <FilesMatch ... directives, access to /cgi-bin/test.pl works.
What do I have to add to my .htaccess?
TIA
Michael

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 21:32:45
Script start
Timing: Jan 19 2025 21:32:45
Module start 'layout'
Timing: Jan 19 2025 21:32:45
Module start 'content'
Timing: Jan 19 2025 21:32:46
Module end 'content'
Timing: Jan 19 2025 21:32:46
Script end

Main resources:

Total runtime1.1786 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 589.1484152.6250
Module start 'layout' 0.00510.0026 741.773439.4453
Module start 'content' 0.00771.1696 781.2188406.9063
Module end 'content' 1.17730.0013 1,188.12508.1797
Script end 1.1786  1,196.3047 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.2664160.0002
Check MTime0.00140.1181160.0001
Mysql Total
Database connection0.00070.060210.0007
Mysqli_queries1.142896.9562460.0248
Looping result0.00040.0376440.0000
Template Total1.145397.220.5726
Template load0.00190.161120.0009
Template processing1.143497.009620.5717
Template load and register function0.00020.015410.0002
states
state_id_array0.00120.102010.0012
state_identifier_array0.00190.158620.0009
Override
Cache load0.00150.124590.0002
Sytem overhead
Fetch class attribute can translate value0.00060.050710.0006
Fetch class attribute name0.00050.040710.0005
XML
Image XML parsing0.00010.008710.0001
class_abstraction
Instantiating content class attribute0.00000.000310.0000
General
dbfile0.00150.1310100.0002
String conversion0.00000.001040.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs