Blog Archives - 2 Record(s)

Remove Filter Year: '2019' - Month: '1'

How to Host Multiple Websites with Ubuntu Linux and Lucee

Note: This is configured to work with Ubuntu 16.04LTS

Step 1:

git clone https://github.com/foundeo/ubuntu-nginx-lucee

Step 2:

Set permissions on install script

cd ubuntu-nginx-lucee
chmod u+x install.sh

Step 3:

Execute the install script and answer y to any install prompts

./install.sh

Step 4:

Configure nginx for your domain

nano /etc/nginx/sites-enabled/me.example.com.conf

server {
	listen 80;
	server_name me.example.com;
	root /web/me.example.com/wwwroot/;
	access_log /var/log/nginx/me.example.com.access.log;
	error_log /var/log/nginx/me.example.com.error.log;
	include lucee.conf;
}

Create the symbolic link in sites-enabled to enable the site:

sudo ln -s /etc/nginx/sites-available/me.example.com.conf /etc/nginx/sites-enabled/

After making changes you need to restart or reload nginx:

sudo service nginx restart

Tips/Tricks & FAQ

Q: How do I access the Lucee admin?

Edit /etc/nginx/lucee.conf

location ~* /lucee/ {
    allow YOUR.EXTERNAL.DESKTOP.IP;
    deny all;
    include lucee-proxy.conf;
}

Q: What's the Lucee default password?

The password is automatically generated for you on install and is stored in /root/lucee-admin-password.txt

cat /root/lucee-admin-password.txt

References: 

https://github.com/foundeo/ubuntu-nginx-lucee