redirect problem

Discussion in 'Installation/Configuration' started by aminbaik, Mar 13, 2025.

Tags:
  1. aminbaik

    aminbaik New Member

    Hello
    i have a php website with mysql db when i tried to move it ispconfig the website not working probably
    i tried to check the deferents between the old hosting on cpanel and ispconfig i found is the redirect option
    Code:
    ALL        /function\.array\-rand        403    permanent             
    ALL        \)\;\$\(this\)\.html\(        403    permanent             
    ALL        proc/self/environ        403    permanent             
    ALL        msnbot\.htm\)\.\_        403    permanent             
    ALL        /ref\.outcontrol        403    permanent             
    ALL        com\_cropimage        403    permanent             
    ALL        indonesia\.htm        403    permanent             
    ALL        \{\$itemURL\}        403    permanent             
    ALL        function\(\)        403    permanent             
    ALL        labels\.rdf        403    permanent             
    ALL        /playing.php        403    permanent             
    ALL        muieblackcat        403    permanent             
    ALL        (https?|ftp|php)\://        403    permanent             
    ALL        /(https?|ima|ucp)/        403    permanent             
    ALL        /(Permanent|Better)$        403    permanent             
    ALL        (\=\\\'|\=\\%27|/\\\'/?|\)\.css\()$        403    permanent             
    ALL        (\,|\)\+|/\,/|\{0\}|\(/\(|\.\.\.|\+\+\+|\||\\\"\\\")        403    permanent             
    ALL        \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini|rar)$        403    permanent             
    ALL        /(contac|fpw|install|pingserver|register)\.php$        403    permanent             
    ALL        (base64|crossdomain|localhost|wwwroot|e107\_)        403    permanent             
    ALL        (eval\(|\_vti\_|\(null\)|echo.*kae|config\.xml)        403    permanent             
    ALL        \.well\-known/host\-meta        403    permanent             
    ALL        /function\.array\-rand        403    permanent             
    ALL        \)\;\$\(this\)\.html\(        403    permanent             
    ALL        proc/self/environ        403    permanent             
    ALL        msnbot\.htm\)\.\_        403    permanent             
    ALL        /ref\.outcontrol        403    permanent             
    ALL        com\_cropimage        403    permanent             
    ALL        indonesia\.htm        403    permanent             
    ALL        \{\$itemURL\}        403    permanent             
    ALL        function\(\)        403    permanent             
    ALL        labels\.rdf        403    permanent             
    ALL        /playing.php        403    permanent             
    ALL        muieblackcat        403    permanent             
    ALL        (https?|ftp|php)\://        403    permanent             
    ALL        /(https?|ima|ucp)/        403    permanent             
    ALL        /(Permanent|Better)$        403    permanent             
    ALL        (\=\\\'|\=\\%27|/\\\'/?|\)\.css\()$        403    permanent             
    ALL        (\,|\)\+|/\,/|\{0\}|\(/\(|\.\.\.|\+\+\+|\||\\\"\\\")        403    permanent             
    ALL        \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini|rar)$        403    permanent             
    ALL        /(contac|fpw|install|pingserver|register)\.php$        403    permanent             
    ALL        (base64|crossdomain|localhost|wwwroot|e107\_)        403    permanent             
    ALL        (eval\(|\_vti\_|\(null\)|echo.*kae|config\.xml)        403    permanent             
    ALL        \.well\-known/host\-meta        403    permanent             
    ALL        /function\.array\-rand        403    permanent             
    ALL        \)\;\$\(this\)\.html\(        403    permanent             
    ALL        proc/self/environ        403    permanent             
    ALL        msnbot\.htm\)\.\_        403    permanent             
    ALL        /ref\.outcontrol        403    permanent             
    ALL        com\_cropimage        403    permanent             
    ALL        indonesia\.htm        403    permanent             
    ALL        \{\$itemURL\}        403    permanent             
    ALL        function\(\)        403    permanent             
    ALL        labels\.rdf        403    permanent             
    ALL        /playing.php        403    permanent             
    ALL        muieblackcat        403    permanent             
    ALL        (https?|ftp|php)\://        403    permanent             
    ALL        /(https?|ima|ucp)/        403    permanent             
    ALL        /(Permanent|Better)$        403    permanent             
    ALL        (\=\\\'|\=\\%27|/\\\'/?|\)\.css\()$        403    permanent             
    ALL        (\,|\)\+|/\,/|\{0\}|\(/\(|\.\.\.|\+\+\+|\||\\\"\\\")        403    permanent             
    ALL        \.(cgi|asp|aspx|cfg|dll|exe|jsp|mdb|sql|ini|rar)$        403    permanent             
    ALL        /(contac|fpw|install|pingserver|register)\.php$        403    permanent             
    ALL        (base64|crossdomain|localhost|wwwroot|e107\_)        403    permanent             
    ALL        (eval\(|\_vti\_|\(null\)|echo.*kae|config\.xml)        403    permanent             
    ALL        \.well\-known/host\-meta        403    permanent             
    ALL        /function\.array\-rand        403    permanent             
    ALL        \)\;\$\(this\)\.html\(        403    permanent             
    ALL        proc/self/environ        403    permanent             
    ALL        msnbot\.htm\)\.\_        403    permanent             
    ALL        /ref\.outcontrol        403    permanent             
    ALL        com\_cropimage        403    permanent             
    ALL        indonesia\.htm        403    permanent             
    ALL        \{\$itemURL\}        403    permanent             
    ALL        function\(\)        403    permanent             
    ALL        labels\.rdf        403    permanent             
    ALL        /playing.php        403    permanent             
    ALL        muieblackcat        403    permanent     
    is there any way to add this to ispconfig?
    thanks.
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Sure, use either .htaccess file isf its an Apache server or the Apache directives field of the website, and if its Nginx, use the Nginx directives field of the website for this.
     
  3. aminbaik

    aminbaik New Member

    how i can write those in .htaccess or Apache directive ?
    i tried for example:
    RewriteEngine on
    RewriteRule (https?|ftp|php)\://
    but its not working...
    any suggest ?
     
  4. till

    till Super Moderator Staff Member ISPConfig Developer

    There are plenty of guides on the internet, including the Apache documentation, which explain how rewrite rules for Apache are formatted; there is nothing specific about ISPConfig here. Or you can try to dump your old rules in ChatGPT or another AI and ask it to convert them to Apache rewrite rules.
     
  5. aminbaik

    aminbaik New Member

    thank for ur support
    i still have same error under log:
    Code:
    Cannot serve directory /var/www/clients/client2/web5/web/images/1/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,standard_index.html) found, and server-generated directory index forbidden by Options directive

    i tried to add under website Apache Directives
    Options -Indexes +FollowSymLinks

    but i get same error.

    i tried to add in .htaccess and i get same problem

    any suggest ?
    thanks.
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    Seems as if you try to access folder /var/www/clients/client2/web5/web/images/1/ and this folder has no index file, thats's why you get this warning. Getting the warning is fine though as long as there is no index file that the web server can show.
     
  7. aminbaik

    aminbaik New Member

    yes and i tried to to disbale the index but not working.
    any suggest ?
     

Share This Page