proxy_pass ip, böyle yapılandırma görünüm:Nginx ve benim VPS nginx ve proxy_pass ile küçük bir sorun var
server {
listen 8080;
root /var/www/;
index index.php;
location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass wordpress;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
include fastcgi_params;
}
}
server {
listen 80;
root /var/www;
index index.html;
location ~ ^/mihal {
proxy_pass http://127.0.0.1:8080;
}
location ~ \.php {
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass wordpress;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param QUERY_STRING $query_string;
include fastcgi_params;
}
}
ve her zaman Ben http://serverdomanin.com/mihal almayı denedim http://127.0.0.1/mihal için yeniden yönlendirildim ... Bu yapılandırmayı doğru bir şekilde kullanmak için ne yapmalıyım? (altında/mihal/wordpress örneğidir). Yardım için çok teşekkürler!