CentOS+Apache configures the following domains:
Server1 virtualhost
http://www.test.com/
https://new-sslhost.com/
Server 2 virtualost
https://sslhost.com
Currently, the following index.html contains the following description:
http://www.test.com/index.html
<a href="https://sslhost.com/"><img src=https://sslhost.com/image.jpg></a>
This is used by Apache mod_Rewrite, etc.
when http://test.com/index.html
is displayed
I want to rewrite "img src=https://sslhost.com/image.jpg
" to "img src=https://new-sslhost.com/image.jpg
".
When you click the link, the address bar displays https://sslhost.com
while
Is it actually possible to display https://new-sslhost.com
When you click on the link, the address bar displays https://sslhost.com and
Is it actually possible to display https://new-sslhost.com?
If https://sslhost.com
appears in the address bar, the browser will have direct access to Server 2, so you can't do anything with unrelated Server 1.If you can do that easily, it will be used for phishing scams.
Of course, you can do that if you do something other than Server1.
https://sslhost.com
in the client hosts filehttps://sslhsot.com
Create a proxy to send to Server 1 and configure it as a clientThe key to both methods is to make changes over legitimate communication routes.
When http://test.com/index.html
is displayed, I want to rewrite "img src=https://sslhost.com/image.jpg
" to "img src=https://new-sslhost.com/image.jpg
".
This is possible, but mod_rewrite is only a module that internally rewrites the URL of the request and does not have the ability to modify the contents of the response.I think mod_substitude can be used instead.
574 rails db:create error: Could not find mysql2-0.5.4 in any of the sources
624 Uncaught (inpromise) Error on Electron: An object could not be cloned
925 When building Fast API+Uvicorn environment with PyInstaller, console=False results in an error
615 GDB gets version error when attempting to debug with the Presense SDK (IDE)
© 2024 OneMinuteCode. All rights reserved.