Browse Source

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

* chmod to tmp folder in php-fpm container
master
parent
commit
8c8e29a918
  1. 2
      config/nginx/conf.d/vhosts.conf.example
  2. 5
      dockerfiles/php-fpm/php74.Dockerfile

2
config/nginx/conf.d/vhosts.conf.example

@ -23,6 +23,7 @@ server {
fastcgi_pass php74; fastcgi_pass php74;
include fastcgi_params; include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; 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 SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info; fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info; fastcgi_param PATH_TRANSLATED $document_root$fastcgi_path_info;
fastcgi_param SERVER_NAME $host;
fastcgi_pass php73; fastcgi_pass php73;
fastcgi_index index.php; fastcgi_index index.php;

5
dockerfiles/php-fpm/php74.Dockerfile

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

Loading…
Cancel
Save