From 184377f54c966f20c01b35c629e84cfdca5f2a48 Mon Sep 17 00:00:00 2001 From: Victor Westerlund Date: Mon, 22 Dec 2025 21:17:27 +0000 Subject: [PATCH] feat: add tracking of HTTP servers --- sites-available/8001.conf | 38 ++++++++++++++++++++++++++++++++++++++ sites-available/8002.conf | 38 ++++++++++++++++++++++++++++++++++++++ sites-available/8003.conf | 31 +++++++++++++++++++++++++++++++ 3 files changed, 107 insertions(+) create mode 100644 sites-available/8001.conf create mode 100644 sites-available/8002.conf create mode 100644 sites-available/8003.conf diff --git a/sites-available/8001.conf b/sites-available/8001.conf new file mode 100644 index 0000000..6fbff98 --- /dev/null +++ b/sites-available/8001.conf @@ -0,0 +1,38 @@ +server { + listen 8001; + + server_name _; + + root /var/www; + index index.html index.php; + + client_max_body_size 1G; + + add_header Access-Control-Allow-Origin *; + + location / { + try_files $uri $uri.html $uri/ @extensionless-php; + autoindex on; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + # With php-fpm (or other unix sockets): + fastcgi_pass unix:/run/php/php8.4-fpm.sock; + # With php-cgi (or other tcp sockets): + #fastcgi_pass 127.0.0.1:9000; + } + + location @extensionless-php { + rewrite ^(.*)$ $1.php last; + } + + # -- Proxies -- + + # -- Overrides -- + + location /tools/pla/index.php { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php7.3-fpm.sock; + } +} diff --git a/sites-available/8002.conf b/sites-available/8002.conf new file mode 100644 index 0000000..73f2257 --- /dev/null +++ b/sites-available/8002.conf @@ -0,0 +1,38 @@ +server { + listen 8002; + + server_name _; + + # Reflect + #root /var/www/reflect/public; + + # Vegvisir + root /var/www/fw/vegvisir/public; + + # Other + #root /var/www/sites/href/public; + + index index.html index.php; + +# location ~ /assets/* { +# root /var/www/sites/vlw.se/public; +# root /var/www/vegvisir-website/public; + +# root /var/www/icellate-web; +# root /var/www/genemate-2/public; +# root /var/www/lams; +# root /var/www/violet; + +# try_files $uri $uri/ =404; +# add_header Access-Control-Allow-Origin *; +# } + + location ~ /* { + try_files /index.php =503; + add_header Access-Control-Allow-Origin *; + + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php8.4-fpm.sock; + #fastcgi_pass unix:/run/php/php7.3-fpm.sock; + } +} diff --git a/sites-available/8003.conf b/sites-available/8003.conf new file mode 100644 index 0000000..4a0244d --- /dev/null +++ b/sites-available/8003.conf @@ -0,0 +1,31 @@ +server { + listen 8003; + + server_name _; + + # Reflect + root /var/www/fw/reflect/public; + # iCellate API peer helper +# root /var/www/api-peer-wrapper/public; + # Vegvisir +# root /var/www/vegvisir/public; + + index index.html index.php; + +# location ~ /assets/* { +# try_files $uri $uri/ =404; +# add_header Access-Control-Allow-Origin *; +# } + + location ~ /* { + try_files /index.php =503; + + add_header Access-Control-Allow-Origin $http_origin always; + add_header Access-Control-Allow-Methods GET,POST,PUT,PATCH,DELETE,OPTIONS always; + add_header Access-Control-Allow-Headers Authorization,Content-Type always; + + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php8.4-fpm.sock; +# fastcgi_pass unix:/run/php/php7.3-fpm.sock; + } +}