Fix ipv 6 not connecting

This commit is contained in:
Tim 2024-02-06 00:09:05 +01:00
parent c5954815c5
commit ac06792584
2 changed files with 5 additions and 3 deletions

View File

@ -19,13 +19,13 @@
# Default server configuration # Default server configuration
# #
server { server {
listen 80; listen 80;
listen [::]:80; listen [::]:80;
root /home/tim/projects/$sub; root /home/tim/projects/$sub;
# Add index.php to the list if you are using PHP # Add index.php to the list if you are using PHP
index index.html index.htm index.php; index index.html index.htm index.php;
server_name "~^(?<sub>.+)\.basic\.local\.loken\.nl$"; server_name "~^(?<sub>.+)\.basic\.local\.loken\.nl$";

View File

@ -1,4 +1,6 @@
server { server {
listen 80;
listen [::]:80;
#server_name *.local.loken.nl; #server_name *.local.loken.nl;
#server_name ~^(.+)\.local\.loken\.nl$; #server_name ~^(.+)\.local\.loken\.nl$;
server_name "~^(?<sub>.+)\.local\.loken\.nl$"; server_name "~^(?<sub>.+)\.local\.loken\.nl$";