works perfectly with apache

This commit is contained in:
Lulzette 2022-04-25 14:10:19 +00:00
parent cdfd5e22e5
commit ab65d23b36
2 changed files with 27 additions and 43 deletions

View File

@ -1,4 +1,4 @@
FROM php:7.4-fpm FROM php:7.4-apache
RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini" #RUN mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"

View File

@ -50,26 +50,10 @@ server {
# proxy the PHP scripts to Apache listening on 127.0.0.1:80 # proxy the PHP scripts to Apache listening on 127.0.0.1:80
# #
#location ~ \.php$ {
# proxy_pass http://127.0.0.1;
#}
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
location ~ \.php$ { location ~ \.php$ {
root html; proxy_pass http://php;
fastcgi_pass php:9000; }
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME /var/www/html/$fastcgi_script_name;
include fastcgi_params;
}
# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#
#location ~ /\.ht {
# deny all;
#}
} }
} }