sixem / ivfi-php

IVFi is a directory indexer that aims to make it easy to browse and explore web-accessible directories.
https://git.five.sh/ivfi/
Other
108 stars 18 forks source link

Something appears to be broken. #1

Closed soarn closed 5 years ago

soarn commented 5 years ago

Context: content directory: /var/www/html/ src directory: /var/www/src/ public directory: /var/www/html/public/ all of my content is located in /var/ww/html/* (not in /var/www/html/public/* folder) apache2 location: /etc/apache2/ server location: s.soarn.pro


I have in /etc/apache2/sites-avaiable a file named s.soarn.pro.conf and is has:

<VirtualHost *:80>
    ServerName https://s.soarn.pro/
    ServerAlias www.s.soarn.pro/

    DocumentRoot "/var/www/website/"
    DirectoryIndex index.php index.html index.htm /indexer.php
</VirtualHost>

I also have in /etc/apache2/ a .htaccess file with

DirectoryIndex index.php index.html index.htm /indexer.php

In the /etc/apache2/ is the apache2.conf file, which should be the default file, I added to the end of it:

irectoryIndex index.php index.html index.htm /indexer.php
# Requires rewrite module to be enabled (sudo a2enmod rewrite).
RewriteEngine On
RewriteRule ^/indexer.php(.*)$ - [R=404,L]

So far, even with systemctl restart apache2 nothing is working, and I just get the default apache2 layout on the server. I also installed mbstring, jquery.scrollTo, and Tocca.js. However nothing appears to be working. Is there something that I am doing wrong?

Thanks, Soarn.

sixem commented 5 years ago

From what i can see you have placed the public directory in your DocumentRoot. Try moving the files from public straight into your DocumentRoot directory instead, and then edit the indexer.php to make sure it points directly to the source file, this line right here: require_once('../src/eyy-indexer.php');.

If it still doesn't work, then i'll have to test it out for myself.

soarn commented 5 years ago

Well jeez, why didn't I realize that? But thank you so much! This has 100% fixed it, thank you a lot!