DEV Community

Harry Madgwick
Harry Madgwick

Posted on

Apache2 Ubuntu Reverse Proxy not working.

My Apache2 VirtualHost.conf

<VirtualHost *:80>
ProxyPreserveHost On
ProxyRequests On
<Proxy *>
Order allow,deny
Allow from all
</Proxy>
ProxyPass / http://38.242.235.101:1025/
ProxyPassReverse / http://38.242.235.101:1025/
<Location />
Order allow,deny
Allow from all
</Location>
ServerName yt-scrape.harrystech.uk
RewriteEngine on
RewriteCond %{SERVER_NAME} =yt-scrape.harrystech.uk
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

My Apache2 Proxy.conf

```

ProxyRequests On


Order allow,deny
Allow from all

ProxyVia On

```

Top comments (0)