Results 1 to 8 of 8

Thread: Custom HTTPD Configurations

  1. #1
    Join Date
    Jul 2008
    Posts
    227

    Custom HTTPD Configurations

    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
    Support the new Evolution Theme by DirectAdmin and its eventual release


    THEME NOW WORKING IN AN RC STATE

  2. #2
    Join Date
    Jul 2008
    Posts
    227
    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.
    Support the new Evolution Theme by DirectAdmin and its eventual release


    THEME NOW WORKING IN AN RC STATE

  3. #3
    Join Date
    Jul 2008
    Posts
    227
    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 Code:
    IndexOptions FancyIndexing NameWidth=* FoldersFirst ScanHTMLTitles DescriptionWidth=*
    HeaderName HEADER.html
    ReadmeName README.html
    AllowOverride FileInfo Indexes
    Options Indexes SymLinksIfOwnerMatch FollowSymLinks
    ErrorDocument 404 default
    Support the new Evolution Theme by DirectAdmin and its eventual release


    THEME NOW WORKING IN AN RC STATE

  4. #4
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,729
    Hello,

    AllowOverride Directive
    Context: directory

    https://httpd.apache.org/docs/2.4/mo...#allowoverride


    With Directadmin try CUSTOM3 instead of CUSTOM, if it fails use CUSTOM1.

  5. #5
    Join Date
    Jul 2008
    Posts
    227
    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.
    Support the new Evolution Theme by DirectAdmin and its eventual release


    THEME NOW WORKING IN AN RC STATE

  6. #6
    Join Date
    Jul 2008
    Posts
    227
    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
    Support the new Evolution Theme by DirectAdmin and its eventual release


    THEME NOW WORKING IN AN RC STATE

  7. #7
    Join Date
    Apr 2005
    Location
    GMT +7.00
    Posts
    12,729
    Try and move all directives under CUSTOM3

  8. #8
    Join Date
    Jul 2008
    Posts
    227
    Yep, that did the trick.

    Thanks for your help.
    Support the new Evolution Theme by DirectAdmin and its eventual release


    THEME NOW WORKING IN AN RC STATE

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •