docker-library / httpd

Docker Official Image packaging for Apache HTTP Server
https://httpd.apache.org
Apache License 2.0
310 stars 345 forks source link

httpd encounters a 500 problem that can be solved as follows #244

Closed hubcomsix closed 11 months ago

hubcomsix commented 11 months ago

PossibleSolution

  1. APACHE DOES NOT ENABLE THE REWRITE MODULE. Solution: Edit the http.conf file of apache, find #LoadModule rewrite_module modules/mod_rewrite.so, remove the previous #, and restart APACHE.
  2. There is an error in the .htaccess file. This is usually because ungrammatical rules are written. Solution: Delete the .htaccess in this directory. If it still doesn't work, delete the .htacess in the parent directory, and so on.
  3. Permission issues, while viewing /var/log/apache2/error.log logs.
LaurentGoderre commented 11 months ago

@hubcomsix I am unclear about what is being asked here.