HTML copy of php site -


I have two servers, ip1-public and server # 2 with ip2-private server # 1 only i server # 2 knows the IP, and server # 2 will always be private to prevent DDOS attacks.

  • The server # 1 is a simple web host that supports HTML (and can use PHP scripts twice a day with a cron)
  • Server # Php-Nginx in 2

I want to host server # 1 HTML files that are created by PHP scripts on Server # 2 (IP2-Private).

How is this possible?

For example: Server # 2 creates HTML files and uploads it to PasteBin or FTP, which do not log the IP. Then download HTML files from server # 1 pastebin / ftp and still do not know the IP of any server # 2.

In your cron job 'running on private server', you could:

  1. Create an HTML file for 'public server'
  2. Use it to send it to a private server directory (Example: scp to write HTML files from PHP The following can be done from within a PHP file: > html = "<"> body ; ; H1 & gt; Hello Server 2 to

    This Server 2 Created "fwrite ($ htmlfile, $ htmltext);
< / Html>

Comments

Popular posts from this blog

java - Can't add JTree to JPanel of a JInternalFrame -

javascript - data.match(var) not working it seems -

javascript - How can I pause a jQuery .each() loop, while waiting for user input? -