mockingbird
Verified User
- Joined
- Feb 6, 2023
- Messages
- 25
So I have installed Drupal many times, but this time I'm doing it with DirectAdmin.
My issue is that after the installation is complete, the Drupal page does not display CSS/JS.
The issue is that AllowOverride must be set to all in .htaccess but it is being overridden by DA's http.conf directives. When I manually comment out the default AllowOverride entry and insert an AllowOverride All directive in HTTPD.CONF, Drupal displays fine. Now I have no issue leaving things as is, but as I understand, HTTP.CONF will reset after each DA update, so that solution is not ideal.
I need to make the change persistent.
I've read this:
https://docs.directadmin.com/webser...ing-custom-httpd-conf-code-to-the-virtualhost
It wasn't helpful.
While AllowOverride All now does show up after inserting it into the 'CUSTOM3' text box, the subsequent default AllowOverride statement still present seems to override it (and my Drupal page displays incorrectly):
Any help is appreciated.
Thanks
My issue is that after the installation is complete, the Drupal page does not display CSS/JS.
The issue is that AllowOverride must be set to all in .htaccess but it is being overridden by DA's http.conf directives. When I manually comment out the default AllowOverride entry and insert an AllowOverride All directive in HTTPD.CONF, Drupal displays fine. Now I have no issue leaving things as is, but as I understand, HTTP.CONF will reset after each DA update, so that solution is not ideal.
I need to make the change persistent.
I've read this:
https://docs.directadmin.com/webser...ing-custom-httpd-conf-code-to-the-virtualhost
It wasn't helpful.
While AllowOverride All now does show up after inserting it into the 'CUSTOM3' text box, the subsequent default AllowOverride statement still present seems to override it (and my Drupal page displays incorrectly):
Code:
<VirtualHost my.ip.address:443 >
SSLEngine on
SSLCertificateFile /usr/local/directadmin/data/users/admin/domains/my.domain.removed.cert.combined
SSLCertificateKeyFile /usr/local/directadmin/data/users/admin/domains/my.domain.removed.key
ServerName www.my.domain.removed
ServerAlias www.my.domain.removed my.domain.removed
ServerAdmin [email protected]
DocumentRoot "/home/admin/domains/my.domain.removed/private_html"
UseCanonicalName OFF
SuexecUserGroup admin admin
CustomLog /var/log/httpd/domains/my.domain.removed.bytes bytes
CustomLog /var/log/httpd/domains/my.domain.removed.log combined
ErrorLog /var/log/httpd/domains/my.domain.removed.error.log
<Directory "/home/admin/domains/my.domain.removed/private_html">
AllowOverride All
AllowOverride AuthConfig FileInfo Indexes Limit Options=Indexes,IncludesNOEXEC,MultiViews,SymLinksIfOwnerMatch,FollowSymLinks,None
Options -ExecCGI -Includes +IncludesNOEXEC
<FilesMatch "\.(inc|php|phtml|phps)$">
<If "-f %{REQUEST_FILENAME}">
#ProxyErrorOverride on
<IfVersion > 2.4.59>
ProxyFCGISetEnvIf "true" SCRIPT_FILENAME "%{unescape:%{SCRIPT_FILENAME}}"
</IfVersion>
AddHandler "proxy:unix:/usr/local/php83/sockets/admin.sock|fcgi://localhost" .inc .php .phtml
</If>
</FilesMatch>
<FilesMatch "\.(php53|php54|php55|php56|php70|php71|php72|php73|php74|php80|php81|php82)$">
Order Allow,Deny
Deny from all
</FilesMatch>
</Directory>
# Mail auto configuration (Thunderbird)
ProxyPassMatch "^/\.well-known/autoconfig/mail/config-v1\.1\.xml$" "unix:/usr/local/directadmin/shared/internal.sock|http://localhost"
</VirtualHost>
Any help is appreciated.
Thanks
Last edited: