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

Direct links to .PO files are being blocked (404) #1560

Open
bserem opened this issue Feb 24, 2021 · 1 comment
Open

Direct links to .PO files are being blocked (404) #1560

bserem opened this issue Feb 24, 2021 · 1 comment

Comments

@bserem
Copy link
Contributor

bserem commented Feb 24, 2021

I am trying to use BOA as a hosting environment for a drupal localize server.
On cron, the server creates the .PO files of the translation and I can see them in the filesystem.
A direct link to them however results to a 404 error. Renaming them to TXT files allows access to them.

Sample path:
http://localize.FQDN.com/sites/localize.FQDN.com/files/translation_packages/my_module/my_module-1.0.po

I couldn't find a directive under /data/disk/o1/config/server_master that blocks po files, and I couldn't add one that will allow them.
Is it possible that this is hardcoded somewhere else in BOA?

Allowing PO files to be downloaded directly is important so that remote files can download the translations automatically.

Thanks

@omega8cc
Copy link
Owner

omega8cc commented May 8, 2023

I know it's an old ticket, but we are moving fast with updates again, so adding this to the wishlist.

It's actually blocked in the Aegir Provision template used to create this config file:

/data/disk/o1/config/includes/nginx_vhost_common.conf

We have actually copied this from Drupal core, but you can simply edit nginx_vhost_common.conf after every Octopus upgrade to remove this protection.

screenshot 2023-05-08 at 20 38 56

screenshot 2023-05-08 at 20 42 32

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

No branches or pull requests

2 participants