How to comment out default error derictves

Discussion in 'HOWTO-Related Questions' started by sakhmed, Mar 21, 2015.

  1. sakhmed

    sakhmed New Member

    Hello everyone,

    Installed perfect nginx server using tutorial on this site, thank you!!!
    I am running drupal 7 on that server. I want that error pages will be handled by drupal, not by server default error pages

    Now, in nginx Directives on the options tab for drupal web domain configuration, I have input some directives.

    location / {
    try_files $uri $uri/ /index.php?q=$uri&$args;
    }

    This seems overriding anything I change in virtual host container via shell.

    The default site's virtual host container comes with this
    error_page 400/error/400.html;
    error_page 401/error/401.html;
    error_page 403/error/403.html;
    error_page 404/error/404.html;
    error_page 405/error/405.html;
    error_page 500/error/500.html;
    error_page 502/error/502.html;
    error_page 503/error/503.html;

    How can I comment out this lines either via shell or ISPConfig?
    Basically, what I need is

    # error_page 400/error/400.html;
    # error_page 401/error/401.html;
    # error_page 403/error/403.html;
    # error_page 404/error/404.html;
    # error_page 405/error/405.html;
    # error_page 500/error/500.html;
    # error_page 502/error/502.html;
    # error_page 503/error/503.html;

    Can anyone advice?
     
    Last edited: Mar 23, 2015
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Uncheck the custom error pages checkbox in the website settings of this site.
     
  3. sakhmed

    sakhmed New Member

    Oh man :-( :)
    How can I miss it. It is called "Own Error-Documents"
     

Share This Page