Adding code to nginx config

Discussion in 'Installation/Configuration' started by AxelssonDesign, Oct 3, 2017.

  1. Hello,

    I need to add code to this location:
    Add the code above inside the server section in the file, right before the php location block. Looks something like:
    location ~ \.php$ {

    Where is this location in ispConfig control panel ?
     
  2. labsy

    labsy Member

    Maybe it would work if you add this nginx directive under WEBSITE --> OPTIONS --> NGINX DIRECTIVES.
    For example, to mimic Apache's mod-rewrite (which is needed for Wordpress, Joomla and such) I simply add this code under above mentioned nginx directives:
    Code:
    location / {
                    try_files $uri $uri/ /index.php?$args;
           }
     

Share This Page