DevHeads.net

I get error message underneath. I googled and tried to make some changes
but no luck.

[Thu Dec 14 13:49:10.312713 2017] [autoindex:error] [pid 16794] [client
10.5.2.185:63041] AH01276: Cannot serve directory
/var/www/<mydomaim>/html/seeddms/: No matching DirectoryIndex
(index.html,index.php,index.php) found, and server-generated directory
index forbidden by Options directive

I have several services running w/o problems, e.g. piwigo. rainloop,
firefly-iii, emby media server. They are all located in
/var/www/<mydomain>/html/

My setup:
CENTOS 7, httpd-2.4.6-67.el7.centos.6.x86_64. I setup Set Up Apache Virtual
Host.

Document root is be set to individual directories in the /var/www
directory; /var/www/<mydomany>/html
I created an index.html file in /html directory.

A virtual host files is created in /etc/httpd/sites-available and created
also /etc/httpd/sites-enabled directory, which I added to
/etc/httpd/conf/httpd.conf at the end; IncludeOptional sites-enabled/*.conf

<VirtualHost *:80>
ServerName www.<mydomain>
ServerAlias <mydomain>
DocumentRoot /var/www/<mydomain>/html
ErrorLog /var/www/<mydomain>/error.log
CustomLog /var/www/<mydomain>/requests.log combined
RewriteEngine on
RewriteCond %{SERVER_NAME} =<mydomain> [OR]
RewriteCond %{SERVER_NAME} =www.<mydomain>
RewriteRule ^ https://%{SERVER_NAME}%{REQUEST_URI} [END,NE,R=permanent]
</VirtualHost>

There is a symbolic link for the virtual host in the sites-enabled
directory:
sudo ln -s /etc/httpd/sites-available/<mydomain>.conf
/etc/httpd/sites-enabled/<mydomain>.conf

Thanks for your help

Comments

Re: [autoindex:error] [pid 16794]

By Eric Covener at 12/14/2017 - 10:35

On Thu, Dec 14, 2017 at 8:36 AM, Wolfgang Paul Rauchholz
<wp. ... at gmail dot com> wrote:
What do you expect to be served when /html/seeddms/ is accessed?

Re: [autoindex:error] [pid 16794]

By Wolfgang Paul R... at 12/14/2017 - 11:38

At this point the installation procedure.
I installed all in ../html/seeddms and whenentering in my web browser
<mydomain>/seeddms I get this error message.

Re: [autoindex:error] [pid 16794]

By Richard at 12/14/2017 - 14:10

Well, do you have at least one of the following files:

- index.html
= index.php
- index.php

in that directory? That's what you've configured it to look for as a
directoryindex.