Using php's gethostname() function

Created on 27 August 2014, almost 10 years ago
Updated 29 May 2024, about 1 month ago

In situations with load balancers, could we use gethostname() in environment_indicator_check_access($e) (line 488) in order get the server name (opposed to the pathname)?

For example, say you have a production server and a fail-over server behind a load balancer. These servers are joined via mySQL one-way server replication. The URL a user actually has is to the load balancer, not to any particular server. When a content editor is logged in via the load balancer URL, are they editing the primary production server (which will be replicated) or fail over database (which will be 'lost' when you switch back over to primary production).

Thanks for this module.

✨ Feature request
Status

Closed: outdated

Version

2.5

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States rgchi

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024