Nginx config for Pimp My Log in separate directory?

Evan's Avatar

Evan

Apr 01, 2018 @ 09:10 PM

Hello, I'd like to install pimp my log into its own directory say /var/www/pml/html/ and would like to serve pml from mysite.com/pml (mysite.com file are in /var/www/mysite/html)

In my mysite.com nginx config I've set the following:

139     location /pml {
140        alias /var/www/pml/html/vendor/potsky/pimp-my-log/;
141        index  index.php index.html index.htm;
142        try_files $uri $uri/ /index.php?q=$uri&$args;
143     }

But I'm still getting a 404, any help would be great.

Reply to this discussion

Internal reply

        No formatting (switch to Markdown)

          You can attach files up to 10MB

            If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

              Keyboard shortcuts

              Generic

              ? Show this help
              ESC Blurs the current field

              Comment Form

              r Focus the comment reply box
              ^ + ↩ Submit the comment

              You can use Command ⌘ instead of Control ^ on Mac