I want to see my blog posts from this url https://blog.example.com I have two linux PCs. One for proxy and other is a LAMP server.
proxy VM ip address is 10.xx.0.10
Lamp server ip address is 10.xx.0.11
I can able to access the page through http://10.xx.0.11/MyBlogs/posts
10.xx.0.10 proxy configuration
<VirtualHost *:443>
ServerName blog.example.com
ServerAlias blog.example.com
SSLProxyEngine on
SSLProxyCheckPeerCN on
ProxyPreserveHost On
AllowEncodedSlashes NoDecode
RequestHeader set X-Forwarded-Proto "https"
RequestHeader set X-Forwarded-Port "443"
ProxyPass / http://10.xx.0.11/MyBlogs/posts
ProxyPassReverse / http://10.xx.0.11/MyBlogs/posts
...
</VirtualHost>
Now i am trying to access https://blog.example.com, then its redirect to https://blog.example.com/MyBlogs/posts. And its shows "Object not found!" error.
Thanks