0

The Apache Congig

<Directory  /var/www/vhosts/avoclub/htdocs/avobb>
    Options -Indexes +FollowSymLinks -ExecCGI +MultiViews

    AllowOverride All

    <IfModule mod_proxy_fcgi.c>
        RewriteEngine On
        RewriteBase /
        RewriteOptions InheritBefore
        RewriteCond %{REQUEST_FILENAME} -f
        #RewriteRule ^([^\.]+\.php)$ fcgi://127.0.0.1:9056/$1
        RewriteRule ^([^\.]+\.php)$ fcgi://127.0.0.1:9056/var/www/vhosts/avoclub/htdocs/avobb/$1 [L,P]
    </IfModule>

    Order allow,deny
    allow from all

    <IfVersion >= 2.4>
        Require all granted
    </IfVersion>
</Directory>

what i am trying to do, I have a Image script that water marks the image and displays

the .htaccess file

Options -Indexes
Options +FollowSymLinks
ReWriteEngine On
RewriteRule ([a-zA-Z0-9_]*\.(jpg|png)) ./image.php?filename=$1
<Files "logfile.log">
     Order allow,deny
     Deny from all
</Files>

it should :) request a image file .htacces rewrites it to image.php, water mark image and display.

but when u do

https://bbs.avoclub.com/documents/how_too/RS2_Clutch_7.jpg

you get File not found.

Help

1 Answers1

1

Moved the

    <IfModule mod_proxy_fcgi.c>
        RewriteEngine On
        RewriteBase /
        RewriteOptions InheritBefore
        RewriteCond %{REQUEST_FILENAME} -f
        #RewriteRule ^([^\.]+\.php)$ fcgi://127.0.0.1:9056/$1
        RewriteRule ^([^\.]+\.php)$ fcgi://127.0.0.1:9056/var/www/vhosts/avoclub/htdocs/avobb/$1 [L,P]
    </IfModule>

out side the <Directory> block ! Sorted

Blue