lapis icon indicating copy to clipboard operation
lapis copied to clipboard

How to run multiple lapis instance on port 80?

Open uudiin opened this issue 9 years ago • 1 comments

I will run multiple website in one server. I don't think that using proxy is a good idea. Can I run multiple lapis instance in one nginx server ?

uudiin avatar Dec 18 '16 04:12 uudiin

If you make another server location in nginx config and put server_name subdomain.domain.tld; you can make it only listen to that subdomain. I use this to proxy to a local git server, So in my case it is

server {
	listen ${{PORT}};
	server_name git.domain.tld;
	location / {
		proxy_pass RealGitServer;
	}
}

Instead of a proxy, Just put your usual things

kngrektor avatar Dec 18 '16 09:12 kngrektor