Direct IP access not allowed | 403Forbidden | Error 1003

Hi,
My server Ubuntu 16.04 with IP: 185.4.5.5
I use Apache reverse proxy with config file 000-default.conf
LoadModule proxy_module modules/mod_proxy.so
<VirtualHost *:80>

  ProxyPreserveHost On
  ProxyPass  /excluded !
  ProxyPass / http://api.mydomain.net/
  ProxyPassReverse / http://api.mydomain.net/
  ServerAdmin webmaster@localhost
  DocumentRoot /var/www/html
  ErrorLog ${APACHE_LOG_DIR}/error.log
  CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

My domain http://api.mydomain.net with Proxy status: Proxied

After then, I checked URL: http://185.4.5.5/path and received data:


If I use http://api.mydomain.net/ , it work normally.

Please help me check it.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.