git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[users@httpd] Apache 2.4.x - Restriction of HTTPS Enforcement to external clients


Hello,

 

I have a need to restrict https enforcement on my Apache installation to only external clients.

 

The server hosting the Apache instance is accessible over the internet via a domain http://www.domainname.net while the same server is accessed internally/locally (LAN) by application servers via http://172.16.10.x/

 

Whenever https is enforced, the internal applications become unstable because they have not been programmed to make https calls and cannot deal with the https redirection done by Apache. However, eternal clients accessing the server via the internet using the domain name are fine.

 

Find below the details of the Apache instance and current configuration driving https enforcement:

 

Server version: Apache/2.4.23 (Unix)

 

RewriteCond %{HTTPS} !=on

# This checks to make sure the connection is not already HTTPS

RewriteRule ^/?(.*) https://%{SERVER_NAME}/$1 [R,L]

 

I need help on how to configure Apache to only apply the enforcement of https to calls via the internet using the domain name. In other words, all http calls to the server using the internal local server IP should not be redirected to https.

 

Regards,

 

Luther Enahoro

 



Disclaimer: The information contained in this e-mail message and any attachment is for designated recipient(s) ONLY and may contain privileged, proprietary, or private information. It is for the exclusive use of the intended recipient(s). If the recipient of this message is not the above-named intended recipient(s), you are hereby notified that any dissemination, copy or disclosure of this communication is strictly prohibited. If you have received this e-mail in error please notify the sender and purge the communication immediately without making any copy or distribution.



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache2-users/msg02677.html on line 107
Call Stack
#TimeMemoryFunctionLocation
10.0008368680{main}( ).../msg02677.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache2-users/msg02677.html on line 107
Call Stack
#TimeMemoryFunctionLocation
10.0008368680{main}( ).../msg02677.html:0