Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 80 forks source link

How to host multiple websites with Ajenti-V #290

Open tokunboajewole opened 4 years ago

tokunboajewole commented 4 years ago

Hello there, Installed Ajenti-V and everything seems to be working fine, except the path where websites are served from.

I have 2-domains registered and correctly pointed to server.

From the dashboard, I created a website, set the path to the directory of my choice, uploaded a sample index.html file, applied changes, etc, but the expected page isn;t opening.

I found the page that opened was this: /var/www/html/index.nginx-debian.html

If I rename the above and upload my own index.html file into /var/www/html/, yes my index.html file displays correctly when I use my domain in the URL.

Like, i want to have multiple sites, so I assume that by setting my path for each website as: /var/www/html/domain1.com and /var/www/html/domain2.com, each should work.

I created 2 websites in my dashboard and set the path as above, but I observe that the server is still returning the index file here: /var/www/html/index.html. If I delete this index file, i get error 403.

Note: I restarted the ajenti service, and the server, just to be sure, but same issue persists. Please help.

regards Tokunbo