選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

28 行
752B

  1. server {
  2. listen 8081;
  3. server_name _;
  4. root /var/www/phpliteadmin;
  5. index index.php;
  6. location / {
  7. try_files $uri $uri/ /index.php?$query_string;
  8. }
  9. location ~ \.php$ {
  10. include fastcgi_params;
  11. fastcgi_index index.php;
  12. fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
  13. fastcgi_param DOCUMENT_ROOT $realpath_root;
  14. # fastcgi_params strips the port from HTTP_HOST for security; reattach
  15. # nginx's own listening port (not the client-supplied one) so
  16. # phpLiteAdmin's absolute redirects/links keep the :8081.
  17. fastcgi_param HTTP_HOST $host:$server_port;
  18. fastcgi_pass 127.0.0.1:9000;
  19. }
  20. location ~ /\. {
  21. deny all;
  22. }
  23. }

Powered by TurnKey Linux.