Am Wed, 30 May 2018 12:32:31 +0200 schrieb Markus Rosjat <[email protected]>:
> Hi there, > > i hope someone can sort this out for me but I dont get it. I get a > nice "Primary Script unknown" message when I try to reach a defined > location. > > I try reach https://UrlToMySite.tld/admin/ and in thsi location is a > index.php file > > so I Configure my Location in httpd.conf like this > > location "/admin/*" { > root "/path/to/my/site/admin" > root strip 1 > directory index index.php > > fastcgi socket "/run/php-fpm.sock" > > authenticate with "/users/me/mysite_passwd" > } > > in my opinion this should show me the generated index.php but instead > I get file not found. When I call the index.php explicitly like > https://UrlToMySite.tld/admin/index.php it works. > > so where do I go wrong here? > > regards > why do you strip the first path component? What do you want to achieve? Strip 'admin'? And serve '/path/to/my/site/index.php'? Are you sure that the file exists? What is in the log (tail -f /var/www/logs/*.log) maybe the 'directory index' in '/path/to/my/site' is set to 'index.html'?

