ispconfig nginx directives for codiad

Discussion in 'HOWTO-Related Questions' started by bradgillap, Sep 16, 2017.

  1. bradgillap

    bradgillap New Member


    I'm having a difficult time understanding nginx directives and how they relate with ispconfig. I can get codiad setup fine under apache but nginx is giving me trouble as I get 404 errors.

    Codiad provides this document as help with nginx

    I think that I can ignore everything in server {} and I tried to pass the location /codiad {} section with edits but I still can't get it to work.

    I've read the nginx directive documentation and still don't really understand it. If there is another resource you would recommend I'd appreciate any help. Not sure why I can't get my head around this.

    I use ispconfig 3 with vhosts.
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    Try to put just this in nginx directives field (untested though):

    location / {
    # First attempt to serve request as file, then
    # as directory, then fall back to index.html
    try_files $uri $uri/ /index.html;
    the other parts from that file like the php handler or error page handlers are all written by ispconfig.
  3. bradgillap

    bradgillap New Member

    Thank you till! Your solution worked perfectly as always!

Share This Page