aboutsummaryrefslogtreecommitdiff
path: root/srcs/nginx/ft_services.com
diff options
context:
space:
mode:
authorCharles <sircharlesaze@gmail.com>2020-02-23 14:26:29 +0100
committerCharles <sircharlesaze@gmail.com>2020-02-24 05:18:32 +0100
commite9c7081d573f6f207aef13959b26f4a489e00ead (patch)
tree880428e65181094b7a510ab05f0d8bdcabbb04f9 /srcs/nginx/ft_services.com
parentf128d6470b18ef8fff4e6ce0b269b2b673ab91ca (diff)
downloadft_services-e9c7081d573f6f207aef13959b26f4a489e00ead.tar.gz
ft_services-e9c7081d573f6f207aef13959b26f4a489e00ead.tar.bz2
ft_services-e9c7081d573f6f207aef13959b26f4a489e00ead.zip
nginx https
Diffstat (limited to 'srcs/nginx/ft_services.com')
-rw-r--r--srcs/nginx/ft_services.com41
1 files changed, 0 insertions, 41 deletions
diff --git a/srcs/nginx/ft_services.com b/srcs/nginx/ft_services.com
deleted file mode 100644
index b04e470..0000000
--- a/srcs/nginx/ft_services.com
+++ /dev/null
@@ -1,41 +0,0 @@
-server {
- listen 443 ssl;
- listen [::]:443 ssl;
-
- ssl_certificate /root/ssl/localhost.pem;
- ssl_certificate_key /root/ssl/localhost-key.pem;
-
- server_name localhost;
- index index.php;
- root /var/www/wordpress;
-
- location / {
- try_files $uri $uri/ =404; # if uri or uri/ not valid, 404 error
- }
-
- # phpmyadmin path, change root
- location /phpmyadmin {
- root /var/www;
- index index.php;
- location ~ ^/phpmyadmin/(.+\.php)$ {
- include snippets/fastcgi-php.conf;
- fastcgi_pass unix:/var/run/php/php7.3-fpm.sock;
- }
- location ~ ^/phpmyadmin/(.+\.(jpg|jpeg|gif|css|png|js|ico|html|xml|txt))$ {
- root /var/www;
- }
- }
-
- # php files
- location ~ \.php$ {
- 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
- }
-}
-
-server {
- listen 80;
- listen [::]:80;
- server_name localhost;
- return 301 https://$host$request_uri;
-}