Custom HTTPD Configurations

youds

Verified User
Joined
Jul 11, 2008
Messages
492
Location
Lancashire, UK
Hi

I wonder if someone can help.

I am seeing "AH00526: Syntax error on line 24 of /usr/local/directadmin/data/users/apacheproj/httpd.conf: AllowOverride not allowed in <VirtualHost> context" when entering in "AllowOverride FileInfo Indexes", the rest of my custom configuration works OK.

So question is, if it doesn't go in httpd.conf customization where should it go?

Please note: this is a requirement of apache's for becoming a mirror.,

Kind regards
 
Just to elaborate, I can't actually access the domain because it symlinks to a mounted volume.

All I get in the logs is a warn about SSL certificates.

Will update soon.
 
I have to admit, I'm not quite sure what DirectAdmin expects me to do here. Usually I would just edit the config files myself.

https://help.directadmin.com/item.php?id=3

Says to use some tokens? Can someone explain how to get to this point with DirectAdmin/Apache:

HTML:
IndexOptions FancyIndexing NameWidth=* FoldersFirst ScanHTMLTitles DescriptionWidth=*
HeaderName HEADER.html
ReadmeName README.html
AllowOverride FileInfo Indexes
Options Indexes SymLinksIfOwnerMatch FollowSymLinks
ErrorDocument 404 default
 
Hi

Thanks, that helps for now.

For anybody facing permission issues like me, note /usr/local/directadmin/scripts/set_permissions.sh all saved me a lot of time and troubleshooting.
 
So,

In the top box of customize the httpd.conf file I have this:

Code:
IndexOptions FancyIndexing NameWidth=* FoldersFirst ScanHTMLTitles DescriptionWidth=*
HeaderName HEADER.html
ReadmeName README.html
Options Indexes SymLinksIfOwnerMatch FollowSymLinks
ErrorDocument 404 default

And in CUSTOM3 I have this:
Code:
AllowOverride FileInfo Indexes

But it has absolutely no effect. Logs below:

Code:
[Tue Jan 29 06:56:53.416910 2019] [autoindex:error] [pid 78412:tid 140315515979520] [client 90.252.220.146:43464] AH01276: Cannot serve directory /home/mirrors/domains/mirrors.london-do.gethosted.online/public_html/apache/: No matching DirectoryIndex (index.html,index.htm,index.shtml,index.php,index.php5,index.php4,index.php3,index.phtml,index.cgi,index.pl) found, and server-generated directory index forbidden by Options directive
 
Back
Top