oupala / apaxy

a simple, customisable theme for your apache directory listing
https://oupala.github.io/apaxy/
GNU General Public License v3.0
1.86k stars 256 forks source link

Edits to header.html and footer.html not shown. #104

Closed pcav closed 5 years ago

pcav commented 6 years ago

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.

ghost commented 6 years ago

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.

pcav commented 6 years ago

Could be some conflict among apache confs

pcav commented 6 years ago

Strangely enough, other options of apaxy (icons etc.) work well, so I guess .htaccess is interpreted.

oupala commented 6 years ago

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.

pcav commented 6 years ago

-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

oupala commented 6 years ago

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?

pcav commented 6 years ago

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.

oupala commented 6 years ago

I found no clue browsing your website.

Is there any log in apache error.log that can show any problem?

pcav commented 6 years ago

Nothing on the logs. Previously I had it working, e.g.: http://salgrid.org/Hydrogeologic_Atlas_of_Sierra_Leone_2017/

oupala commented 6 years ago

You mean that it works well on salgrid, and it does not work on faunalia?

pcav commented 6 years ago

Apparently yes. That of Salgrid was a version from last year.

oupala commented 6 years ago

Ok, so let's dig in deeper.

Can you check the operating system version (and type) and the apache version?

pcav commented 6 years ago

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!

oupala commented 6 years ago

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.

pcav commented 6 years ago

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>
oupala commented 6 years ago

That's so strange. I can't figure out what happens to your non-working server. Sorry.

pcav commented 6 years ago

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.

oupala commented 5 years ago

Did you have time to investigate? Or can we close the issue?

pcav commented 5 years ago

I'm not using it currently, so I'm unsure whether this still applies, sorry.

oupala commented 5 years ago

Ok, so closing the issue for now.