Edits to header.html and footer.html not shown.
pcav opened this issue · 20 comments
It's most likely something I'm doing wrong, so sorry for opening a ticket.
I edited theme/header.html as follows:
theme$ cat header.html
<div class="wrapper">
<!-- we open the `wrapper` element here, but close it in the `footer.html` file -->
<p>Test</p>
but nothing appears on the index page: any explanation?
Thanks a lot.
Make sure the .htaccess file is pointing to the proper location. I had this same issue, just to find that I was pointing to the wrong .htaccess.
Could be some conflict among apache confs
Strangely enough, other options of apaxy (icons etc.) work well, so I guess .htaccess is interpreted.
Can you make sure that header.html
has the right user, the right group and the right permissions. The file has to be readable by apache user.
-rw-r--r-- 1 paolo paolo 861 Jan 29 16:35 footer.html
-rw-r--r-- 1 paolo paolo 159 Feb 18 20:38 header.html
Is there any log in apache error.log that can show any problem?
Do you have an example website so we can browse it? And try to find an explanation?
Here you are: http://www.faunalia.eu/pdf/
Nothing in apache logs.
Permissions checked:
-rw-r--r-- 1 paolo paolo 383 Feb 24 19:12 footer.html
Thanks.
I found no clue browsing your website.
Is there any log in apache error.log that can show any problem?
Nothing on the logs. Previously I had it working, e.g.:
http://salgrid.org/Hydrogeologic_Atlas_of_Sierra_Leone_2017/
You mean that it works well on salgrid, and it does not work on faunalia?
Apparently yes. That of Salgrid was a version from last year.
Ok, so let's dig in deeper.
Can you check the operating system version (and type) and the apache version?
Both Debian Jessie
Both apache 2.4.10-10+deb8u11
On the one not working I'm using latest version of Apaxy, on the working one that of last year. I think it is more likely that I'm doing something wrong, or that other confs interfere with this, but I cannot find what.
Thanks a lot!
Ah, all versions are similar.
Could you apply a global diff -rq /etc/apache2
to see configuration differences between both machines?
Is it basically a bruteforce search, but I don't have so much idea.
Working:
<Directory /var/www/html/>
Options Indexes FollowSymLinks MultiViews
IndexIgnore theme
AllowOverride All
Order deny,allow
Allow from all
</Directory>
Not working:
<Directory /var/www/www.faunalia.eu>
AllowOverride All
ErrorDocument 404 http://www.faunalia.eu/en/index.html
</Directory>
# for nice listing: apaxy
<Directory /home/paolo/public_html/>
Options Indexes FollowSymLinks MultiViews
IndexIgnore theme
AllowOverride All
Order deny,allow
Allow from all
</Directory>
<VirtualHost *:80>
ServerName www.faunalia.eu
DocumentRoot /var/www/www.faunalia.eu
ServerAdmin cavallini@faunalia.it
ErrorLog /var/log/apache2/www.faunalia.eu/error.log
CustomLog /var/log/apache2/www.faunalia.eu/access.log combined
RewriteEngine on
# rewrite rules follow
</VirtualHost>
#--------------------------------------------------------------------------
#
#--------------------------------------------------------------------------
<VirtualHost *:443>
# SSL conf here
ServerName www.faunalia.eu
DocumentRoot /var/www/www.faunalia.eu
ServerAdmin cavallini@faunalia.it
ErrorLog /var/log/apache2/www.faunalia.eu/error.log
CustomLog /var/log/apache2/www.faunalia.eu/access.log combined
RewriteEngine on
# rewrite rules follow
</VirtualHost>
That's so strange. I can't figure out what happens to your non-working server. Sorry.
So do I. Thanks for your time in investigating this. I'll sort it out sooner or later.
I'll inform you when solved.
Thanks again.
Did you have time to investigate? Or can we close the issue?
I'm not using it currently, so I'm unsure whether this still applies, sorry.
Ok, so closing the issue for now.