diff options
| author | Charles <sircharlesaze@gmail.com> | 2019-12-02 14:24:02 +0100 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2019-12-02 14:24:02 +0100 |
| commit | 88e0fc1862241ce15f9bf6d6edef9bc0a0a075e1 (patch) | |
| tree | 585c6f2cedfe465ddbe482fad35cc3eb23fb606e /srcs/conf/test.com | |
| parent | 18e64859aaa311547c3306532b5a828af92e4c4c (diff) | |
| download | ft_server-88e0fc1862241ce15f9bf6d6edef9bc0a0a075e1.tar.gz ft_server-88e0fc1862241ce15f9bf6d6edef9bc0a0a075e1.tar.bz2 ft_server-88e0fc1862241ce15f9bf6d6edef9bc0a0a075e1.zip | |
basic nginx server
Diffstat (limited to 'srcs/conf/test.com')
| -rw-r--r-- | srcs/conf/test.com | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/srcs/conf/test.com b/srcs/conf/test.com new file mode 100644 index 0000000..cf734e1 --- /dev/null +++ b/srcs/conf/test.com @@ -0,0 +1,20 @@ +server { + listen 80; + root /var/www/html; + index index.php; + server_name test.com; + + location / { + try_files $uri $uri/ =404; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass + unix:/var/run/php/php7.2-fpm.sock; + } + + location ~ /\.ht { + deny all; + } +} |
