Improve D8+ apache2 doc especially with cookie check

Created on 20 May 2024, 6 months ago

Problem/Motivation

The D8+ version can serve static files directly via symfony request. But it's better to serve the files directly via webserver. The current apache config do not reflect what the D7 htaccess config helper shows conditions especially with cookie check.

  # Caching for anonymous users
  # Skip boost IF not get request OR uri has wrong dir OR cookie is set OR request came from this server
  RewriteCond %{REQUEST_METHOD} !^(GET|HEAD)$ [OR]
  RewriteCond %{REQUEST_URI} (^/(admin|cache|misc|modules|sites|system|openid|themes|node/add|comment/reply))|(/(edit|user|user/(login|password|register))$) [OR]
  RewriteCond %{HTTP_COOKIE} DRUPAL_UID [OR]
  RewriteCond %{ENV:REDIRECT_STATUS} 200
  RewriteRule .* - [S=2]

Steps to reproduce

it's obvious

Proposed resolution

Provide config examples with D8+ cookie check

Remaining tasks

Crete config example, test and add to apache documentation page and README.

User interface changes

-

API changes

-

Data model changes

-

📌 Task
Status

Active

Version

1.0

Component

Documentation

Created by

🇩🇪Germany c-logemann Frankfurt/M, Germany

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024