: Update main page / minimize downtime I plan on updating my main page frequently but I'm concerned about downtime. There seems to be a significant lag between when I FTP a file to the server
I plan on updating my main page frequently but I'm concerned about downtime. There seems to be a significant lag between when I FTP a file to the server and when I can get it to load in a web browser. I see a lot of No data received ERR_EMPTY_RESPONSE when I point my browser at the uploaded file.
My best idea to combat this is to create a symbolic link pointing to the current version and list that symbolic link first in the .htaccess DirectoryIndex, upload the new version with a different filename, wait until I get the new file to load in a browser, and finally update the symbolic link to point to the new version of the page.
I'm using bluehost currently.
Is there a better way? Will I still get that error if I try to do it this way? Thanks
More posts by @Fox8124981
1 Comments
Sorted by latest first Latest Oldest Best
I would probably upload the file under a different filename (ie index.new), then (assuming you get a shell or the ftp supports it) rename the old file to index.x (could version them or just make it .old) and rename the new file to whatever your page is.
The problem you have seems to be that the upload will overwrite the old page (ftp deletes it, then gets the whole new page, and finally has to close the file before the webserver can read it) which might take a while. Renames should be instant.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.