• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Directory listing

B

BigBr0thr

Guest
I created a subdomain demo.mydomain.nl .
if users browse to this dir, i want a directorylisting to show up.
After studieing some posts, i figured out that the way to do this, is to create a .htaccess file in this directory and to put Options +Indexes in this file.
When i browse to this site, i still get a file not found error.
Do i have to change anything in the httpd.conf ??
Or could there be anything wrong with owner/permissions ??
 
Are you sure that you put the .htaccess file in the root of the "httpdocs" directory for the subdomain? It should work straight off when you add "Options +Indexes" to the file.

Can you load files from the subdomain - just to make sure it is working?

- Chris
 
Yup, the .htaccess file is in the httpdocs dir of the subdomain.
The strangest thing is that when i browse to demo.mydomain.nl i get the mainpage of the maindomain. I suspect that Mambo changed the config for the domain.
 
It sounds like the subdomains isn't working at all then if you're browsing to sub.domain.com and seeing www.domain.com.

Try removing and re-adding the subdomain.

Also make sure you have the most up-to-date version of Plesk by running the updater (Server > Update).

Best Regards,

- Chris
 
Back
Top