D
D
Denis2018-09-27 11:12:30
Apache HTTP Server
Denis, 2018-09-27 11:12:30

How to specifically trigger a "500 - internal server error" error?

On the server, there are various files at the root - they are open for viewing and downloading, something like a file washer.
Created a folder at the root of the server /var/www/1/, and in it an empty file called "test".
An empty .htaccess is also placed there. The
question is how can I cause an error 500 - internal server error in the client when I try to enter:
site.ru/1 and site.ru/1/test
Apache settings:

<Directory /var/www/>
  #Options Indexes FollowSymLinks
    Options Indexes
  AllowOverride None
  Require all granted
</Directory>
....
<Directory /var/www/1/>
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
roswell, 2018-09-27
@Rentable

<Directory /var/www/>
    # ...
    Redirect 500 /1
</Directory>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question