Report this

What is the reason for this report?

Can't change virtualhost listen port without crashing my site

Posted on July 21, 2014
dsan

By dsan

Hi, I am trying to configure Varnish in an Ubuntu 14.04 server running three virtual hosts and I am getting stuck in the previous step of changing listen port in apache ports.conf and sites-available/site.conf.

It doesn’t matter what port I try (recommended 8080, 8585, 4000, etc), after restarting the server I get a connection error when trying to visit my website.

Can you help me?



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!

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.

try checking apache error log for details

I don’t see any error. Am I missing something?:

[Mon Jul 21 17:54:58.001140 2014] [:notice] [pid 1607] ModSecurity for Apache/2.7.7 (http://www.modsecurity.org/) configured. [Mon Jul 21 17:54:58.001512 2014] [:notice] [pid 1607] ModSecurity: APR compiled version=“1.5.1-dev”; loaded version=“1.5.1-dev” [Mon Jul 21 17:54:58.001529 2014] [:notice] [pid 1607] ModSecurity: PCRE compiled version="8.31 "; loaded version=“8.31 2012-07-06” [Mon Jul 21 17:54:58.001539 2014] [:notice] [pid 1607] ModSecurity: LUA compiled version=“Lua 5.1” [Mon Jul 21 17:54:58.001555 2014] [:notice] [pid 1607] ModSecurity: LIBXML compiled version=“2.9.1” [Mon Jul 21 17:54:59.010104 2014] [mpm_prefork:notice] [pid 1608] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.3 configured – resuming normal operations [Mon Jul 21 17:54:59.010203 2014] [core:notice] [pid 1608] AH00094: Command line: ‘/usr/sbin/apache2’

By the way, already tried to disable modsecurity and that didn’t help.

Nothing there… no error is being recorded.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.