Score:0

Migrate rules from Apache to Nginx

us flag

I have to migrate an Apache configuration file to Nginx but as I have no experience in Nginx I would like some help.

This is my apache setup:

000-default.conf

<VirtualHost *:80>

        ServerAdmin webmaster@localhost
        <Directory /var/www/ff>
                AllowOverride All
                Options -Indexes
        </Directory>

        DocumentRoot /var/www

        RedirectMatch ^/$ /ff/
        Alias "/uploads" "/var/www/ff/uploads/"



        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined


</VirtualHost>

I’m a little lost as using the parameter RedirectMatch in nginx, I guess it has another name help me create a configuration file for nginx?

Regards,

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.