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

enabling the apache module remoteip #20

Closed
wants to merge 1 commit into from

Conversation

JonBendtsen
Copy link
Contributor

enabling the apache module remoteip will partly fix issue #2

Besides this change, we should probably have some documentation stating how to create a remoteip.conf file which should be bind mounted at /etc/apache2/mods-enabled.

Contents should be something like:

RemoteIPHeader X-Forwarded-For

It is also entirely possible to bind mount another text file named remoteip.load with this content

LoadModule remoteip_module /usr/lib/apache2/modules/mod_remoteip.so

If that is done, then we don't even need this merge request.

But we still need some documentation stating how to do it

enabling the apache module remoteip will partly fix issue Dolibarr#2
@JonBendtsen
Copy link
Contributor Author

I ended up going for 3 individual files that I would then just mount into the apache config directories.

    - '/home/{{ username }}/dolibarr_apache_config_files/remoteip.load:/etc/apache2/mods-enabled/remoteip.load:ro'
    - '/home/{{ username }}/dolibarr_apache_config_files/remoteip.conf:/etc/apache2/mods-enabled/remoteip.conf:ro'
    - '/home/{{ username }}/dolibarr_apache_config_files/servername.conf:/etc/apache2/conf-enabled/servername.conf:ro'

I've tested it and it works great :-)

@JonBendtsen JonBendtsen deleted the patch-1 branch September 20, 2024 19:25
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