Я хочу запустить Jenkins & Sonarqube на одном сервере с помощью nginx. Я изменил nginx .conf следующим образом: -
server {
listen 80 default_server;
#listen [::]:80 default_server;
#server_name _;
root /home/ec2-user/gardenwalkthrough;
index about.html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
#return 200 'Message from Rohit';
proxy_pass http://localhost:8080;
#proxy_pass http://localhost;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
server {
listen 12;
server_name _;
root /home/ec2-user/gardenwalkthrough;
index about.html;
# Load configuration files for the default server block.
include /etc/nginx/default.d/*.conf;
location / {
proxy_pass http://localhost:9000;
#proxy_pass http://localhost;
}
error_page 404 /404.html;
location = /40x.html {
}
error_page 500 502 503 504 /50x.html;
location = /50x.html {
}
}
Но проблема здесь в том, что ..Sonarqube работает нормально (на порте 12), а Дженкинс - нет. Страница Jenkins загружается, и внезапно я получаю ошибку 404. Кто-нибудь может мне помочь в этом?