first commit
This commit is contained in:
48
etc/nginx/default.conf
Normal file
48
etc/nginx/default.conf
Normal file
@@ -0,0 +1,48 @@
|
||||
# Nginx configuration
|
||||
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name localhost;
|
||||
|
||||
index index.php index.html;
|
||||
error_log /var/log/nginx/error.log;
|
||||
access_log /var/log/nginx/access.log;
|
||||
root /web/public;
|
||||
|
||||
location ~ \.php$ {
|
||||
try_files $uri =404;
|
||||
fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
fastcgi_pass php:9000;
|
||||
fastcgi_index index.php;
|
||||
include fastcgi_params;
|
||||
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
}
|
||||
}
|
||||
|
||||
# server {
|
||||
# server_name localhost;
|
||||
#
|
||||
# listen 443 ssl;
|
||||
# fastcgi_param HTTPS on;
|
||||
#
|
||||
# ssl_certificate /etc/ssl/server.pem;
|
||||
# ssl_certificate_key /etc/ssl/server.key;
|
||||
# ssl_protocols SSLv3 TLSv1 TLSv1.1 TLSv1.2;
|
||||
#
|
||||
# index index.php index.html;
|
||||
# error_log /var/log/nginx/error.log;
|
||||
# access_log /var/log/nginx/access.log;
|
||||
# root /web/public;
|
||||
#
|
||||
# location ~ \.php$ {
|
||||
# try_files $uri =404;
|
||||
# fastcgi_split_path_info ^(.+\.php)(/.+)$;
|
||||
# fastcgi_pass php:9000;
|
||||
# fastcgi_index index.php;
|
||||
# include fastcgi_params;
|
||||
# fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
|
||||
# fastcgi_param PATH_INFO $fastcgi_path_info;
|
||||
# }
|
||||
# }
|
||||
6
etc/php/php.ini
Normal file
6
etc/php/php.ini
Normal file
@@ -0,0 +1,6 @@
|
||||
[xdebug]
|
||||
xdebug.remote_enable=1
|
||||
xdebug.idekey=PHPSTORM
|
||||
xdebug.profiler_enable=0
|
||||
xdebug.max_nesting_level=700
|
||||
xdebug.remote_host=localhost
|
||||
Reference in New Issue
Block a user