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

Update HTTPD access file and test the changes. #19

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

gemmaro
Copy link
Contributor

@gemmaro gemmaro commented Aug 10, 2024

Hello,

This updates the .htaccess file to address issues (#16, #17, mquinson/po4a#487), and to match the proposed change to mime.conf.
It also adds the local environment setup and tests to check the change works properly.

A few points:

  • If we can use rewrite rules in .htaccess, no changes to the build script are required.
    If not (allowed to use the rewrite module), it could be written in the server-side config.
  • The existing links would not be broken.
  • I wonder if the contents of the .htaccess file should be moved entirely to the server side.
  • Any suggestions are welcome, especially counter-examples and extraction of common parts of Perl test files.

Best,
gemmaro.

* compose.yaml: Add a compose file for the Docker Compose.
* docker/Dockerfile: Add a Docker image recipe for PHP and Apache HTTPD.
* docker/mime.conf, docker/mime.conf.old: Add MIME configulation
files.  The older one is the current file, and the other is the
proposed version (see the reference comments.)
* README.md: Add a developing instruction.
* t/github-16.t, t/github-17.t, t/github-po4a-487.t, t/gitlab-681.t:
Add regression tests for the reported issues about the website translation.
* 03-test.sh: Add a script to run all tests.
* src/.htaccess (rewrite): Enable the FollowSymLinks option for the
rewrite module.
Add rewrite rules for the requests with the common language codes.
(multiviews): Remove AddType entries which added language codes as
the MIME type for the PHP script.
Add PHP handler for requests with the .php extension.
Add more languages, such as nb-NO, sr-Cyrl-RS, zh-Hans, and zh-Hant.
Change responded language from zh-cn to zh-Hans.
Set the language priority to English.
* 01-build-pages.sh: Enable to skip updating resources.
* README.md: Add a description about UPDATE variable setting.
* README.md: Mention the version file in the building section.
* manifest.scm: Add GNU Guix manifest file.
* .envrc: Add Direnv config file to start GNU Guix shell.
* README.md: Add an instruction for Guix and Direnv users.
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

Successfully merging this pull request may close these issues.

1 participant