OSDir


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[users@httpd] [autoindex:error] [pid 16794]


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

--

Wolfgang Rauchholz