static index.html file nginx
        Posted  
        
            by 
                Guntis
            
        on Server Fault
        
        See other posts from Server Fault
        
            or by Guntis
        
        
        
        Published on 2012-11-27T10:46:59Z
        Indexed on 
            2012/11/27
            11:06 UTC
        
        
        Read the original article
        Hit count: 341
        
We are using nginx with php-fpm. We plan to make first page static (generate html file). if we have 100 concurrent connections, how we can handle file regeneration? basically we need generate new file index_new.html, then delete index.html, and then move index_new.html to index.html. What happens when index.html file was deleted? User gets 404 error? Or nginx handles file from OS cache? One idea is to tell nginx, that 404 error is index_new.html and then not to move index_new to index, but copy. But i don't like idea about 404 error.
Thanks.
© Server Fault or respective owner