Trying to set up a reverse proxy, apache errors and does not start

I’m trying to set up a reverse proxy on my droplet, following this tutorial step by step -

i’m on the “change listening ports step” and whenever i try to reload apache - i get error message that it is not even active. When i try to start apache with - sudo systemctl start apache2.service i’m told that "job for apache2.service failed because the control process exited with error code. When i do systemctl status apache2.service jounralctl -xe to find out what’s wrong i get “syntax error on line 150” - which i have not touched i guess at all? I guess it’s a relatively easy fix but i have not found any comment about it…

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Did you run the source command like this:

source /etc/apache2/envvars


sudo apache2 source /etc/apache2/envvars

I’ve had a similar issue and using the "source /etc/apache2/envvars " command sorted the issue for me.

Looking forward to your reply.


You can open the apache configuration file on line 150 and see what’s there. You can also run the following command:

httpd -t

It will check the apache configuration file and see if there are syntax errors. You can also paste the 150 line of the config so we can check this for you.

Looking forward to your reply.