installing nginx

Discussion in 'Installation/Configuration' started by brody182, Jun 26, 2016.

  1. brody182

    brody182 Member

    if I install nginx, is there a place where I can put the rewrite rules?

    location /wordpress {
    try_files $uri $uri/ /wordpress/index.php?$args;
    }

    location ~ \.php$ {
    fastcgi_split_path_info ^(/wordpress)(/.*)$;
    }
     
  2. conductive

    conductive Member HowtoForge Supporter

    Yes, you can add nginx Directives under the options tab for each site.
     
  3. gexacor

    gexacor New Member

    You need to add them to the main configuration file or to the virtual host config file instead.
    Take a look here for few examples.
     

Share This Page