404 Error accessing x.x.x.x/dban/about.txt



  • I am running version 1.4.4 SVN Revision: 6077 and am having trouble with the instructions provided here. After following the procedure, I get a 404 error when trying to access the dban folder via the browser. Also tried mouting like this:

    mount -t iso9660 -o loop,uid=www-data,gid=www-data /iso/dban.iso /var/www/dban
    

    Can anyone help?



  • @cml Changing DocumentRoot did not help but changing the folder from which the content is served, did. Thanks.


  • Developer

    @cml I don’t have access to my test system right now but if I remember correctly current FOG versions will trap you with redirecting requests if you try serving files in /var/www/html… Let me check when I get home.


  • Moderator

    To continue on with @THEMCV 's solution.

    Either change the following in 000-default.conf
    DocumentRoot /var/www/html to DocumentRoot /var/www

    or the block @THEMCV posted would change to:

    a2ensite 000-default
    service apache restart
    mkdir /var/www/html/dban
    mount -t iso9660 -o loop /iso/dban.iso /var/www/html/dban```


  • @sebastian-roth Here is the output for both error.log and 000-default.conf

    user@fogserver:/var/log/apache2$ cat error.log
    [Thu Aug 17 11:35:51.641488 2017] [mpm_event:notice] [pid 2410:tid 139953129904000] AH00489: Apache/2.4.27 (Ubuntu) configured -- resuming normal operations
    [Thu Aug 17 11:35:51.641643 2017] [core:notice] [pid 2410:tid 139953129904000] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 11:38:29.056297 2017] [mpm_event:notice] [pid 2410:tid 139953129904000] AH00491: caught SIGTERM, shutting down
    [Thu Aug 17 11:38:30.136292 2017] [mpm_prefork:notice] [pid 15042] AH00163: Apache/2.4.27 (Ubuntu) configured -- resuming normal operations
    [Thu Aug 17 11:38:30.136341 2017] [core:notice] [pid 15042] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 11:38:31.469636 2017] [mpm_prefork:notice] [pid 15042] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 11:38:32.622756 2017] [mpm_prefork:notice] [pid 15120] AH00163: Apache/2.4.27 (Ubuntu) configured -- resuming normal operations
    [Thu Aug 17 11:38:32.622774 2017] [core:notice] [pid 15120] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 11:41:32.767524 2017] [mpm_prefork:notice] [pid 15120] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 11:42:01.438404 2017] [mpm_prefork:notice] [pid 2464] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Thu Aug 17 11:42:01.438498 2017] [core:notice] [pid 2464] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 12:47:56.650295 2017] [mpm_prefork:notice] [pid 2464] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 12:47:57.699805 2017] [mpm_prefork:notice] [pid 9398] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Thu Aug 17 12:47:57.699906 2017] [core:notice] [pid 9398] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 13:30:27.308308 2017] [mpm_prefork:notice] [pid 9398] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 13:30:28.099826 2017] [mpm_prefork:notice] [pid 12355] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Thu Aug 17 13:30:28.099922 2017] [core:notice] [pid 12355] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 13:31:52.894967 2017] [mpm_prefork:notice] [pid 12355] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 13:31:53.943244 2017] [mpm_prefork:notice] [pid 12484] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Thu Aug 17 13:31:53.943344 2017] [core:notice] [pid 12484] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 13:42:01.399065 2017] [mpm_prefork:notice] [pid 12484] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 13:42:02.450655 2017] [mpm_prefork:notice] [pid 13236] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Thu Aug 17 13:42:02.450741 2017] [core:notice] [pid 13236] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 14:38:07.578743 2017] [mpm_prefork:notice] [pid 13236] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 14:38:08.609888 2017] [mpm_prefork:notice] [pid 16725] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Thu Aug 17 14:38:08.609990 2017] [core:notice] [pid 16725] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 14:44:33.647688 2017] [mpm_prefork:notice] [pid 16725] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 14:44:34.719721 2017] [mpm_prefork:notice] [pid 17304] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Thu Aug 17 14:44:34.719820 2017] [core:notice] [pid 17304] AH00094: Command line: '/usr/sbin/apache2'
    [Thu Aug 17 17:21:20.937504 2017] [mpm_prefork:notice] [pid 17304] AH00169: caught SIGTERM, shutting down
    [Thu Aug 17 17:21:22.039081 2017] [mpm_prefork:notice] [pid 26671] AH00163: Apache/2.4.27 (Ubuntu) OpenSSL/1.1.0f configured -- resuming normal operations
    [Thu Aug 17 17:21:22.039166 2017] [core:notice] [pid 26671] AH00094: Command line: '/usr/sbin/apache2'
    
    user@fogserver:/etc/apache2/sites-enabled$ cat 000-default.conf
    <VirtualHost *:80>
            # The ServerName directive sets the request scheme, hostname and port that
            # the server uses to identify itself. This is used when creating
            # redirection URLs. In the context of virtual hosts, the ServerName
            # specifies what hostname must appear in the request's Host: header to
            # match this virtual host. For the default virtual host (this file) this
            # value is not decisive as it is used as a last resort host regardless.
            # However, you must set it for any further virtual host explicitly.
            #ServerName www.example.com
    
            ServerAdmin webmaster@localhost
            DocumentRoot /var/www/html
    
            # Available loglevels: trace8, ..., trace1, debug, info, notice, warn,
            # error, crit, alert, emerg.
            # It is also possible to configure the loglevel for particular
            # modules, e.g.
            #LogLevel info ssl:warn
    
            ErrorLog ${APACHE_LOG_DIR}/error.log
            CustomLog ${APACHE_LOG_DIR}/access.log combined
    
            # For most configuration files from conf-available/, which are
            # enabled or disabled at a global level, it is possible to
            # include a line for only one particular virtual host. For example the
            # following line enables the CGI configuration for this host only
            # after it has been globally disabled with "a2disconf".
            #Include conf-available/serve-cgi-bin.conf
    </VirtualHost>
    
    # vim: syntax=apache ts=4 sw=4 sts=4 sr noet
    

  • Developer

    @AlSam Please check the apache error log for messages. See my signature on where to find those. As well you might post the contents of /etc/apache/sites-enabled/000-default here.



  • Thanks. Tried it, but no luck. Still getting 404 Not Found error.





  • I had this issue not long ago. Try this!

    a2ensite 000-default
    service apache restart
    mkdir /var/www/dban
    mount -t iso9660 -o loop /iso/dban.iso /var/www/dban
    

Log in to reply
 

362
Online

38976
Users

10712
Topics

101675
Posts

Looks like your connection to FOG Project was lost, please wait while we try to reconnect.