Hi Everyone
Just started to use Virtualmin.
(OS = Ubuntu 16.04) - (Webmin = 1.881) - (Usermin = 1.741) - (Virtualmin = 6.02-3)
I have my own domain and configured Virtualmin with it and made a sub-server under it.
Its called something.domain.dk
In the something.domain.dk subdomain im gonna have a lot of PDF files and other files.
Now, my problem is that Virtuelmin shows the index.html as it is configured to do, but when i remove it or change the name, i get "Forbidden You don't have permission to access / on this server." - So how do i change the configuration so people kan see alle the files (txt, PDF and whatever name they have) in that directory and in the directory's inside that subdomain ?
Apache Error log says :
[Thu Apr 12 20:18:02.491172 2018] [autoindex:error] [pid 9135:tid 139938867660544] [client 185.100.87.250:40808] AH01276: Cannot serve directory /home/xxxxxxxxxx/public_html/: No matching DirectoryIndex (index.html,index.htm,index.php,index.php4,index.php5) found, and server-generated directory index forbidden by Options directive
Thanks for a good program :)
/Gaio
This is because in Apache settings its prohibited directory listing and that is fine, e.g. its done for security reasons so do not change this setting. What you can do is place a simple html or php index page containing links to your files. You should really inform yourself before changing settings on your server or you will end as honeypot for all the hackers and bots on the internet.
- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.
So how do i change apache's directory listing for just that directory in virtualmin or apache ?
I must admit, that i am not going to make a index file for about 30000 files, to see the files/directoryes directly is much more easy.
Adding 30000 files to a index site will be to much work instead of letting people see the directory instead and choose the file they want to read.
Then do not touch Apache instead make a htaccess file with "Options +Indexes" and see if it works. Still you should find a better solution because to have 30000 files free to grab/download could produce some sort of DDoS or at very minimum burn your bandwidth in no time. This isnt good solution for your case and i'm sure we will see you back with some other problem but then it will be much more serious than one you have now.
- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.
Found this that did the trick
Services -> configure website menu option Per-Directory Options click on public_html and then Document options There i can choose enable on Generate directory indexes og Generate Multiviews
Now it works with all the security intact :)
This is the same as my suggestion. Still i hope you realize that now literally everyone on the internet can see/access this files and everything else inside your public_html folder.
Edit: At least you could put all those files inside a directory and then enable indexing. In this way you can limit this option to one folder and not entire public_html.
- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.
It is in a folder by it self in a subdomain, so it is not the complete domain that is free :)