'server { \
listen 80; \
server_name localhost; \
root /var/www/html/drupal; \
index index.php index.html index.htm; \
location / { \
try_files $uri /index.php?$query_string; \
} \
location ~ \.php$ { \
include snippets/fastcgi-php.conf; \
fastcgi_pass unix:/var/run/php/php8.1-fpm.sock; \
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; \
include fastcgi_params; \
} \
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { \
try_files $uri /index.php?$query_string; \
expires 1y; \
log_not_found off; \
add_header Cache-Control "private,must-revalidate"; \
} \
}' > /etc/nginx/sites-available/default
but i need to use different php and drupal combinations to test the plugin. so i need to constract different versions on docker. can i use ddev for example to drupal and older php versions?
so, i use docker for drupal.
this is my dockerfile
```
FROM ubuntu:22.04
ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && apt-get install -y \
lsb-release \
ca-certificates \
apt-transport-https \
software-properties-common \
&& add-apt-repository ppa:ondrej/php \
&& apt-get update
RUN apt-get install -y \
nginx \
php8.3 \
php8.3-fpm \
php8.3-mysql \
php8.3-gd \
php8.3-xml \
php8.3-curl \
php8.3-mbstring \
php8.3-zip \
php8.3-intl \
tzdata \
wget \
curl \
unzip \
mariadb-client \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN wget -O drupal.tar.gz https://ftp.drupal.org/files/projects/drupal-10.2.7.tar.gz \
&& tar -xzf drupal.tar.gz \
&& rm drupal.tar.gz \
&& mv drupal-10.2.7 /var/www/html/drupal
RUN chown -R www-data:www-data /var/www/html/drupal && \
chmod -R 755 /var/www/html/drupal
RUN echo 'server { \
listen 80; \
server_name localhost; \
root /var/www/html/drupal; \
index index.php index.html index.htm; \
location / { \
try_files $uri /index.php?$query_string; \
} \
location ~ \.php$ { \
include snippets/fastcgi-php.conf; \
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock; \
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; \
include fastcgi_params; \
} \
location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { \
expires max; \
log_not_found off; \
} \
}' > /etc/nginx/sites-available/default
CMD service php8.3-fpm start && nginx -g 'daemon off;'```
simillar but on drupal 9.x.x is working.
issue in screenshot drupal 2.png
please help me, i don't know how to fix it
gillex → created an issue.