Hello there.
I need some pointers on how to fix 503 Service Unavailable
I installed Apache2, Java 1.8, Commandbox, Coldbox on Ubuntu 16.04 (DigitalOcean). I created a new conf file that properly redirects to /var/www/example.com/public_html
Here’s my conf file
<VirtualHost *:80>
ServerName example.com
DocumentRoot /var/www/example.com/public_html
<Directory “/var/www/example.com/public_html”>
Require all granted
Options Indexes FollowSymLinks MultiViews
AllowOverride All
Order allow,deny
Allow from all
<Proxy >
Allow from 127.0.0.1
RewriteEngine On
DirectoryIndex index.cfm
ProxyPreserveHost On
ProxyPassMatch ^/(.+.cf[cm])(/.)?$ ajp://localhost:8009/$1$2
RewriteCond %{SERVER_NAME} =example.com
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,QSA,R=permanent]
I enabled rewrite, proxy, proxy_http, proxy_ajp
I don’t get any errors when I run service apache2 restart
I started lucee in my coldbox without any problem
example.com (running) 127.0.0.1:33854 → /var/www/example.com
I get the 503 message.
I read on StackOverflow that I need to add
<Connector port="8009" protocol="AJP/1.3" redirectPort="8443"
connectionTimeout="10000" keepAliveTimeout="10000" />
to tomcat server.xml
but I can’t find tomcat anywhere.
A friend of mine told that it was installed together with lucee when I installed coldbox.
I would really appreciate it if somebody helped me fix the problem.
Thanks