title: How to set maintenance mode for Laravel 5.8 behind load balancer in EC2 instance and access from my office?
body: <p>I want to use Laravel maintenance mode on EC2 instance behind the load balancer because I do not want to touch AWS console for returning maintenance content.</p>
  
  <p>Moreover, I want to access my app via web browser from my office while maintenance mode.</p>
  
  <p>I did following and it turns into maintenance mode.</p>
  
  <p>But, I can not see my app from my office although the IP at my office in the allow list.</p>
  
  <p><code>php artisan down --allow=127.0.0.1 --allow=myip/34</code></p>
  
  <p>Do you have any suggestions for this?</p>
  
  <p>Here is my environment information-
  PHP: 5.7
  Laravel: 5.8</p>
  
  <p>Also, I have following source code in App/Http/Middleware/TrustProxies.php</p>
  
  <p><code>
      class TrustProxies extends Middleware
      {
          protected $proxies = '*';
          protected $headers = [
              Request::HEADER_FORWARDED =&gt; 'FORWARDED',
              Request::HEADER_X_FORWARDED_FOR =&gt; 'X_FORWARDED_FOR',
              Request::HEADER_X_FORWARDED_HOST =&gt; 'X_FORWARDED_HOST',
              Request::HEADER_X_FORWARDED_PORT =&gt; 'X_FORWARDED_PORT',
              Request::HEADER_X_FORWARDED_PROTO =&gt; 'X_FORWARDED_PROTO',
          ];
      }</code></p>
  
  <p>Regards,</p>