// Create request
req, err := http.NewRequest("PUT", "https://dns.hetzner.com/api/v1/records/{457bcee459d6932084bb1bc915210f88}", body)
{}
// Create request
req, err := http.NewRequest("PUT", "https://dns.hetzner.com/api/v1/records/457bcee459d6932084bb1bc915210f88", body)
error_reporting(6135); // errors and warnings
RewriteCond %{DOCUMENT_ROOT}/$1 -d
RewriteRule ^([^/]+)/[1-9]\d?$ /$1/index.php [L]
RewriteCond %{DOCUMENT_ROOT}/$1 -d
RewriteRule ^([^/]+)/[1-9]\d\d\d?$ /$1/intel.php [L]
location /adminer/ {
root /usr/share/adminer;
index index.php;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}
}
[0-9]{1,2}$
совпадает и с 00 /adminer/file.php
попадают в location ~ \.php$ {
а там нет root /usr/share/;
. Нужно скопировать location ~ \.php в location /adminer/location /adminer/ {
root /usr/share;
index index.php;
location ~ \.php$ {
fastcgi_pass unix:/run/php/php7.4-fpm.sock;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
include snippets/fastcgi-php.conf;
}
}
location /ttt/ {
rewrite ^ / break;
перекинет все эти запросы на главную. http://51.250.10.185:9292/
перекидывать абсолютно все запросы?server {
listen 80;
listen [::]:80;
server_name 192.168.0.103;
location /ttt/ {
rewrite ^ / break;
proxy_pass http://51.250.10.185:9292;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
}
nginx: [emerg] "proxy_pass" cannot have URI part in location given by regular expression, or inside named location, or inside "if" statement, or inside "limit_except" block in /etc/nginx/conf.d/nginx.conf:17
location ~ ^/ttt/ {
proxy_pass http://51.250.10.185:9292/;
location ~ ^/ttt/ {
proxy_pass http://51.250.10.185:9292;
server {
listen 8080;
listen [::]:8080;
server_name 192.168.0.103;
location /ttt/ {
proxy_pass http://51.250.10.185:9292;
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_cache_bypass $http_upgrade;
}
}
server { }
что там и куда поставили. location /ttt/ {
proxy_pass http://51.250.10.185:3000;
}
location ~ ^/ttt/ {
proxy_pass http://51.250.10.185:3000;
}
location ^~ /ttt/ {
proxy_pass http://51.250.10.185:3000;
}
server { }