diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-01-08 19:03:35 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-01-08 19:03:35 +0100 |
| commit | 7e0d85db834d6351ed85d01e5126ac31dc510b86 (patch) | |
| tree | b3ca82d344a29a912d03e4a75c0b00120cf54446 /srcs/conf/test.com | |
| parent | 6175cf9d70fe9e98b6ec0fa90833a20e1dae7827 (diff) | |
| download | ft_server-7e0d85db834d6351ed85d01e5126ac31dc510b86.tar.gz ft_server-7e0d85db834d6351ed85d01e5126ac31dc510b86.tar.bz2 ft_server-7e0d85db834d6351ed85d01e5126ac31dc510b86.zip | |
wordpress working with mysql
Diffstat (limited to 'srcs/conf/test.com')
| -rw-r--r-- | srcs/conf/test.com | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/srcs/conf/test.com b/srcs/conf/test.com index 866f8ad..dac8f88 100644 --- a/srcs/conf/test.com +++ b/srcs/conf/test.com @@ -1,27 +1,21 @@ server { - listen 80; # listen all ip on port 80 (0.0.0.0:80) - root /var/www/html; # where to find files for location blocks - server_name test.com; # domain name - index index.php index.html index.htm; # files for empty uri + listen 80; # listen all ip on port 80 (0.0.0.0:80) + root /var/www; # where to find files for location blocks + server_name localhost; # domain name + index index.php index.html; # files for empty uri # all uri location / { - try_files $uri $uri/ =404; # if uri or uri/ no valid, 404 error + try_files $uri $uri/ =404; # if uri or uri/ not valid, 404 error } # php files location ~ \.php$ { - try_files $uri =404; # try file in uri, if not found fallthrough 404 error - - # php fpm proxy - fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; # socket where php fpm is running - fastcgi_index index.php # php fpm default index - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; # idk yet - include snippets/fastcgi-php.conf; # include php fpm settings + include snippets/fastcgi-php.conf; # include php fpm settings + fastcgi_pass unix:/var/run/php/php7.3-fpm.sock; # socket where php fpm is running } - # configuration files - # deny access and no logs + # configuration files, deny access and no logs location ~ /\. { deny all; access_log off; |
