We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
Nginx autoindex on (Directory Index)
Nginx autoindex on (Directory Index)
Hi all.
I have decided to reinstall my Vesta CP and use Nginx only. I'm just trying to get things back to how I had them with Apache.
I have a sub domain, lets say sub.domain.com and I would like autoindex on for this sub domain.
I have created a conf file at /home/admin/conf/web/nginx.sub.domain.com.conf containing:
This makes it work at http://sub.domain.com/test/ but when I go to just http://sub.domain.com I get a 404. I presume its looking for an index file.
How can I use the 'nginx.sub.domain.com.conf' include file to do this?
Cheers, John.
I have decided to reinstall my Vesta CP and use Nginx only. I'm just trying to get things back to how I had them with Apache.
I have a sub domain, lets say sub.domain.com and I would like autoindex on for this sub domain.
I have created a conf file at /home/admin/conf/web/nginx.sub.domain.com.conf containing:
Code: Select all
autoindex on;
autoindex_exact_size off;
How can I use the 'nginx.sub.domain.com.conf' include file to do this?
Cheers, John.
Re: Nginx autoindex on (Directory Index)
It seems like it was the symlink that was at fault here. When creating the symlink, use the full path instead of a relative path like so:
Code: Select all
ln -s /etc/nginx/sites-available/example.com /etc/nginx/sites-enable/example.com