+ fastcgi SERVER_NAME with $host nginx variable for correctly passing server name to xdebug in phpstorm

* chmod to tmp folder in php-fpm container
This commit is contained in:
2021-09-10 17:42:19 +03:00
parent 1945097f11
commit 8c8e29a918
2 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,7 @@ server {
fastcgi_pass php74;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param SERVER_NAME $host;
}
}
@ -48,6 +49,7 @@ server {
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SERVER_NAME $host;
fastcgi_pass php73;
fastcgi_index index.php;

View File

@ -33,6 +33,11 @@ RUN if [ ${INSTALL_PEAR_MAIL} = true ]; then \
COPY ./xdebug.ini /usr/local/etc/php/conf.d/xdebug.ini
###########################################################################
# Permission denied on /tmp folder:
###########################################################################
RUN chmod 1777 /tmp
###########################################################################
# Tune opts:
###########################################################################