Guest User

Untitled

a guest
Mar 26th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. 404 Not Found
  2. nginx/1.13.10
  3.  
  4. $ ls logs/
  5. nginx-access.log nginx-error.log
  6. $ cat logs/*
  7. 172.17.0.1 - - [27/Mar/2018:02:11:35 +0000] "GET / HTTP/1.1" 404 572 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/65.0.3325.181 Safari/537.36" "-"
  8. 2018/03/27 02:11:35 [error] 5#5: *1 "/var/wwww/html/index.php" is not found (2: No such file or directory), client: 172.17.0.1, server: localhost, request: "GET / HTTP/1.1", host: "localhost"
  9.  
  10. server {
  11. listen 80;
  12.  
  13. # this path MUST be exactly as docker-compose.fpm.volumes,
  14. # even if it doesn't exists in this dock.
  15. root /var/wwww/html;
  16. index index.php index.html index.html;
  17.  
  18. server_name localhost;
  19.  
  20. location ~ .php$ {
  21. try_files $uri =404;
  22. fastcgi_split_path_info ^(.+.php)(/.+)$;
  23. fastcgi_pass phpfpm:9000;
  24. fastcgi_index index.php;
  25. include fastcgi_params;
  26. fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
  27. fastcgi_param PATH_INFO $fastcgi_path_info;
  28. }
  29. }
  30.  
  31. nginx:
  32. image: nginx
  33. restart: always
  34. ports:
  35. - "80:80"
  36. links:
  37. - phpfpm
  38. - db
  39. volumes:
  40. - ./logs/nginx-error.log:/var/log/nginx/error.log
  41. - ./logs/nginx-access.log:/var/log/nginx/access.log
  42. - ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf
  43. - ./public/:/var/www/html
  44.  
  45. phpfpm:
  46. build: ./mGSV
  47. restart: always
  48. ports:
  49. - "9000:9000"
  50. links:
  51. - db
  52. volumes:
  53. - ./public/:/var/www/html
  54.  
  55. db:
  56. image: mariadb
  57. restart: always
  58. environment:
  59. - MYSQL_ROOT_PASSWORD=admin
  60. - MYSQL_DATABASE=mgsv
  61. - MYSQL_USER=mgsv_user
  62. - MYSQL_PASSWORD=mgsvpass
  63. ports:
  64. - "3306:3306"
  65. volumes:
  66. - ./mysql/:/docker-entrypoint-initdb.d
  67.  
  68. phpmyadmin:
  69. image: phpmyadmin/phpmyadmin
  70. restart: always
  71. links:
  72. - db
  73. ports:
  74. - 8183:80
  75. environment:
  76. PMA_USER: root
  77. PMA_PASSWORD: admin
  78. PMA_ARBITRARY: 1
  79.  
  80. FROM php:5-fpm
Add Comment
Please, Sign In to add comment