![]() Next, go through and delete all the *.php files and any hidden. (These are old sites, right? So you don’t have version control do you? □) This step is to ensure you have all the images, CSS files, and other assets that were no doubt haphazardly scattered throughout your old site. You also want to make sure Nginx serves your pages with the proper mime-type of text/html because if the mime-type is set incorrectly, browsers will end up downloading your pages instead of displaying them.įirst, use FTP or whatever to copy the existing site onto your local machine. You want to keep your ugly old URLs with ? in them working, even though you don’t want them to be dynamically created from a database any more. (On OS X, try installing it with homebrew.) But there are a few subtleties to using it. It’s easy to install on pretty much any platform. How can you migrate your old pages to Nginx? Well, time has passed and now you want to stop using Apache, MySQL, and PHP on your LAMP server, but you also don’t want to just drop your old website entirely off the face of the internet. If you’re like me, in your youth you once made websites with PHP that have uncool URLs like /index.php?seemed-like-a-good-idea=at-the-time. Here's my nginx.How to scrape an old PHP (or whatever) site with wget for use in Nginx Wednesday, September 9, 2015 ![]() Therefore, I want to have phpBB installed on instance A and available under.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |