How to fix this error Invalid command ProxyRequests while setting up Jenkins

+2 votes

I’ve setup a new host for Jenkins which uses proxy but when I try to restart apache I get an error like this:

Invalid command 'ProxyRequests', perhaps misspelled or defined by a module not included in the server configuration
Jul 25, 2018 in Jenkins by Tyrion anex
• 8,700 points
17,028 views

5 answers to this question.

+1 vote
Best answer

The reason why you're getting this error is because your proxy module is not disabled. Enable it using the following command:

a2enmod proxy

And then restart your apache using the following command:

service apache2 reload
answered May 6, 2019 by Vijay

selected May 6, 2019 by Kalgi
+1 vote

Ok, so you must enable proxy for it to run. Just follow the below commands:

 sudo a2enmod proxy
 sudo /etc/init.d/apache2 restart
answered Jul 25, 2018 by Sophie may
• 10,620 points
+1 vote

If you are using WebMin, you can get into Servers > Apache Webservers > Global Configuration > Configure Apache Modules. 

In the second column, you'll see a module called "Proxy". Click on it and then scroll down where you'll "Enable Selected Modules". This will turn the proxy on and restart apache at the same time.

answered May 6, 2019 by Anshul
+1 vote

in case of Ubuntu run the following commands

cd /etc/apache2/mods-enabled
sudo ln -s ../mods-available/proxy_http.load proxy_http.load
sudo ln -s ../mods-available/proxy_ajp.load proxy_ajp.load
sudo ln -s ../mods-available/proxy.load proxy.load
sudo service apache2 restart
answered May 6, 2019 by Neha
0 votes

This is likely caused because mod_proxy module is not present or disabled. To enable it, look out for the following in the main server configuration :

LoadModule proxy_module modules/mod_proxy.so
LoadModule proxy_http_module modules/mod_proxy_http.so
answered May 6, 2019 by Akarsh

Related Questions In Jenkins

0 votes
2 answers

How to solve this error “Jenkins - j_acegi_security_check” ?

This is how I resolved this issue: # ...READ MORE

answered Aug 13, 2018 in Jenkins by lina
• 8,220 points
7,414 views
0 votes
1 answer

I’m facing a login error when I try to run Jenkins on Docker. How do I solve this?

You have to open the /var/log/jenkins/jenkins.log file to ...READ MORE

answered Jul 24, 2018 in Jenkins by Sophie may
• 10,620 points
3,568 views
0 votes
1 answer

Error while talking to remote Oracle DB using Jenkins-CI

I installed Oracle XE to talk to ...READ MORE

answered May 1, 2018 in Jenkins by shubham
• 7,340 points
2,010 views
0 votes
1 answer
+15 votes
2 answers

Git management technique when there are multiple customers and need multiple customization?

Consider this - In 'extended' Git-Flow, (Git-Multi-Flow, ...READ MORE

answered Mar 27, 2018 in DevOps & Agile by DragonLord999
• 8,450 points
4,016 views
+2 votes
1 answer
0 votes
5 answers

How to resolve this error “Jenkins Host key verification failed”?

HI Mam, Please check the following solution:: 1. Switch ...READ MORE

answered May 3, 2019 in Jenkins by anonymous
62,018 views
0 votes
1 answer

Jenkins displays the message that reverse proxy setup is broken. How to solve this issue?

As long as it is not interrupting ...READ MORE

answered Jun 19, 2019 in Jenkins by Neel
• 3,020 points
1,879 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP