How to update additional Nginx directives for several domains

Follow

Comments

4 comments

  • Avatar
    Jason Schilling (Edited )

    I've got another workflow that set the directive, but it doesn't take effect.

    Even if I try to restart the nginx service with

    •     service nginx restart 

    I also checked the user and group and permission.(root:nginx and 644)

     

    // EDIT

    Works with

    /usr/local/psa/admin/sbin/httpdmng --reconfigure-domain <domain>

  • Avatar
    Ivan Postnikov

    @Jason, thank you for noticing, the script will be updated soon.

  • Avatar
    Robert Perrett

    Is this really the only way to do this?  What about apache?

  • Avatar
    Alexandr Redikultsev

    Hi, @Robert Perrett.

    You can use the same approach as for nginx, but using vhost.conf and vhost_ssl.conf (for Additional Apache directives for HTTP and HTTPS correspondingly).

    As an alternative, you can add required directives to configuration template: Changing Virtual Hosts Settings Using Configuration Templates  

Please sign in to leave a comment.

Have more questions? Submit a request