Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Appended path segement on site base is ignored #19

Open
tgaertner opened this issue Jan 30, 2023 · 4 comments
Open

Appended path segement on site base is ignored #19

tgaertner opened this issue Jan 30, 2023 · 4 comments

Comments

@tgaertner
Copy link

Given a site base like "https://mydomain.com/path".

Expect that the request is called against "https://mydomain.com/path/-/opcache/reset"

Current behaviour: the request is called against: "https://mydomain.com/-/opcache/reset"

tgaertner added a commit to tgaertner/typo3-opcache-control that referenced this issue Jan 30, 2023
@mbrodala
Copy link
Member

mbrodala commented Jan 30, 2023

Actually the current behavior is correct since the Opcache is global and not related to any site, base or TYPO3 in general.

Do you see specific issues with the current behavior?

@tgaertner
Copy link
Author

We have a custom branch deployment with deployer on staging servers where path to public webroot is suffixed like "/123_feature", that means the base without that suffix is not callable by the webserver, since there is no typo3/index.php at that level.
Considering the path from our site base would solve that issue. In general it should not harm any other setup if the path is taken into the URI (most installations don't have a path anyway...)

@tgaertner
Copy link
Author

This could also happen to suffixed domains for languages - so its releated to #18

@tgaertner
Copy link
Author

The root of the problem is, if TYPO3 can not resolve the site it will throw an exeption. Maybe an other way to solve this is to place the middleware before the site resolving... not sure about this....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants