In a current project we have separate development and production. The code on both is in single SVN repository.
The problem lies in the access to the development environment from outside. Let's say we have two separate servers for prod and dev:
184.108.40.206 -> production 220.127.116.11 -> development
The idea is to use the same .htaccess with Auth on both servers, but the behavior must be:
- On Development server, the user must Auth himself before accessing the site
- On Production server, the user has full access, without Auth.
It should be something like this (pseudo code):
IF $SERVER_IP == 18.104.22.168 THEN require_auth ELSE do_not_require_auth
We are trying to achieve this with the least possible amount of additional modules, but sadly we couldn't find any information on how to do a condition in .htaccess, based on the server information.
Is it even possible?