I tried to accomplish same task in apache and it worked as expected.
```
<VirtualHost *:3900>
ServerName localhost
ProxyRequests off
SSLProxyEngine on
<Location /api-url>
RewriteEngine on
RewriteRule "^/api-url/(.*)$ /$1"
ProxyPass "https://myapp.com"
ProxyPassReverse "https://myapp.com"
</Location>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
```
I would prefer to use nginx though. If I can't figure it out soon I will have to do a packet capture to compare requests.
```
<VirtualHost *:3900>
ServerName localhost
ProxyRequests off
SSLProxyEngine on
<Location /api-url>
RewriteEngine on
RewriteRule "^/api-url/(.*)$ /$1"
ProxyPass "https://myapp.com"
ProxyPassReverse "https://myapp.com"
</Location>
ErrorLog ${APACHE_LOG_DIR}/error.log
CustomLog ${APACHE_LOG_DIR}/access.log combined
</VirtualHost>
```
I would prefer to use nginx though. If I can't figure it out soon I will have to do a packet capture to compare requests.