Je suis en train d'essayer de faire un proxy pour rediriger une url sur une ip locale, le souci étant que je dois le rediriger sur un port différent et que ce que j'ai fais ne fonctionne pas, je me prend une erreur 503 quand j'arrive via l'adresse DNS :
MyBrowser a écrit :Service Unavailable
The server is temporarily unable to service your request due to maintenance downtime or capacity problems. Please try again later.
Additionally, a 503 Service Unavailable error was encountered while trying to use an ErrorDocument to handle the request.
Code : Tout sélectionner
cat /etc/hhpd/vhosts/jenkins-armv7.domain.com.conf
<VirtualHost *:80>
ServerAdmin webmaster@.domain.com
ServerName jenkins-armv7.domain.com
ServerAlias jenkins-armv7.domain.com
ErrorLog "/var/log/httpd/jenkins-armv7.domain.com-error_log"
CustomLog "/var/log/httpd/-jenkins-armv7.domain.com-access_log" common
ProxyPreserveHost On
ProxyPass "/" "http://192.168.0.11:57890/"
ProxyPassReverse "/" "http://192.168.0.11:57890/"
</VirtualHost>
Code : Tout sélectionner
sudo systemctl status jenkins.service
[sudo] Mot de passe de powabanga :
● jenkins.service - Extendable continuous integration server
Loaded: loaded (/usr/lib/systemd/system/jenkins.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2022-05-19 12:04:16 CEST; 2 weeks 0 days ago
Main PID: 391 (sh)
Tasks: 59 (limit: 4915)
CPU: 3h 34min 1.984s
CGroup: /system.slice/jenkins.service
├─ 391 /bin/sh -c "eval \$JENKINS_COMMAND_LINE"
└─ 399 /usr/bin/java -Xmx512m -jar /usr/share/java/jenkins/jenkins.war --webroot=/var/cache/jenkins --httpPort=56890 --ajp13Port=-1
J'ai exactement la même config qui tourne en local
Code : Tout sélectionner
cat jenkins-aarch64.domain.com.conf
<VirtualHost *:80>
ServerAdmin webmaster@.domain.com
ServerName jenkins-aarch64.domain.com
ServerAlias jenkins-aarch64.domain.com
ErrorLog "/var/log/httpd/jenkins-aarch64.domain.com-error_log"
CustomLog "/var/log/httpd/-jenkins-aarch64.domain.com-access_log" common
ProxyPreserveHost On
ProxyPass "/" "http://localhost:56890/"
ProxyPassReverse "/" "http://localhost:56890/"
</VirtualHost>
[édit]
c'est bon j'ai trouvé, je m'étais planté dans les numéros de port et adresses ip...