[Techinfo] Webszerveren almappában index.php

Veres Sándor veresh at kossuthzs-szeged.edu.hu
2021. Május. 25., K, 11:05:45 CEST


Szia!

2021. 05. 24. 11:37 keltezéssel, fboldog at gmail.com írta:
>
> A .htacces így néz ki az adott almappában:
>
> -------------------
>
> Options -Indexes
>
> # php -- BEGIN cPanel-generated handler, do not edit
>
> # Set the “ea-php70” package as the default “PHP” programming language.
>
> <IfModule mime_module>
>
> </IfModule>
>
> # php -- END cPanel-generated handler, do not edit
>
> ----------------------
>
> Az index.php
>
> <?php -vel kezdődik
>

A gyökérmappa .htaccess fájlját nézd meg.

A drupal.org -ró letölthető zip fájlban van egy ilyen rész (a .htaccess 
fájlban):

   # For security reasons, deny access to other PHP files on public sites.
   # Note: The following URI conditions are not anchored at the start (^),
   # because Drupal may be located in a subdirectory. To further improve
   # security, you can replace '!/' with '!^/'.
   # Allow access to PHP files in /core (like authorize.php or install.php):
   RewriteCond %{REQUEST_URI} !/core/[^/]*\.php$
   # Allow access to test-specific PHP files:
   RewriteCond %{REQUEST_URI} !/core/modules/system/tests/https?.php
   # Allow access to Statistics module's custom front controller.
   # Copy and adapt this rule to directly execute PHP files in 
contributed or
   # custom modules or to run another PHP application in the same directory.
   RewriteCond %{REQUEST_URI} !/core/modules/statistics/statistics.php$
   # Deny access to any other PHP files that do not match the rules above.
   # Specifically, disallow autoload.php from being served directly.
   RewriteRule "^(.+/.*|autoload)\.php($|/)" - [F]

Ha nálad is van ilyen rész, akkor szerintem ezt kellene megfelelően 
kibővíteni (elé írni a számodra szükséges engedélyező szabályt)

Üdvözlettel:
Veres Sándor
--------- következő rész ---------
Egy csatolt HTML állomány át lett konvertálva...
URL: <http://lista.sulinet.hu/pipermail/techinfo/attachments/20210525/1b4f168a/attachment.html>


További információk a(z) Techinfo levelezőlistáról