Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Apache: Invalid command ProxyRequests when setting up jenkins

Tags:

apache

jenkins

I setup a new Vhost for jenkins:

<VirtualHost *:80>     ServerAdmin webmaster@localhost     ServerName ci.company.com     ServerAlias ci     ProxyRequests Off     <Proxy *>         Order deny,allow         Allow from all     </Proxy>     ProxyPreserveHost on     ProxyPass / http://localhost:8080/ </VirtualHost> 

...which uses proxy and when i restart apache I get error like this:

Invalid command 'ProxyRequests', perhaps misspelled or defined by a module not included in the server configuration 
like image 923
TroodoN-Mike Avatar asked Apr 06 '13 11:04

TroodoN-Mike


2 Answers

You should enable proxy. Run a command:

 sudo a2enmod proxy  sudo /etc/init.d/apache2 restart 
like image 52
TroodoN-Mike Avatar answered Sep 27 '22 21:09

TroodoN-Mike


proxy module must be disable. Enable it using below command

a2enmod proxy 

If you don't have access to root, you can use

sudo a2enmod proxy 

After that restart apache server using

service apache2 reload 
like image 22
Jitendra Pawar Avatar answered Sep 27 '22 21:09

Jitendra Pawar