Bacula-users

Re: [Bacula-users] baculum-7.0.2 /wizard not found.

2014-04-10 10:18:37
Subject: Re: [Bacula-users] baculum-7.0.2 /wizard not found.
From: Marcin Haba <ganiuszka AT gmail DOT com>
To: John Drescher <drescherjm AT gmail DOT com>
Date: Thu, 10 Apr 2014 16:15:45 +0200
2014-04-10 15:24 GMT+02:00 John Drescher <drescherjm AT gmail DOT com>:
> On Thu, Apr 10, 2014 at 8:59 AM, Marcin Haba <ganiuszka AT gmail DOT com> 
> wrote:
>> 2014-04-10 14:48 GMT+02:00 John Drescher <drescherjm AT gmail DOT com>:
>>>>> About your /wizard/ page not found error, it looks that you are using
>>>>> subdir in document root for baculum/ directory. Please set your
>>>>> document root location in web server configuration file to baculum/
>>>>> directory (e.g. DocumentRoot /var/www/localhost/htdocs/baculum/)
>>>>>
>>>> You are correct baculum is a subdir of my document root in the exact
>>>> location that you mentioned.
>>>> I did not add the setting for DocumentRoot into apache2.2.25. I will
>>>> look into that.
>>>
>>> I still get /wizard was not found. There is no wizard folder anywhere
>>> in the download that I can find. Is this supposed to exist or is there
>>> some type of redirect that I am missing?
>>
>> Hello,
>>
>> /wizard/ is not location on Baculum structure. It is location that is
>> rewrited by using mod_rewrite web server module.
>>
>> If you do not have support for mod_rewrite enabled, then it could
>> cause error similar for occured in your environment.
>>
>> Please try to enable mod_rewrite. And please do not forget about
>> including directive:
>>
>> AllowOverride All
>>
>> in section of your host definition.
>>
>
> Thanks. I believe I have mod_rewrite
>
> I tried to load it a second time in my httpd.conf to be sure and got this:
>  * Starting apache2 ...
> [Thu Apr 10 09:14:08 2014] [warn] module rewrite_module is already
> loaded, skipping
>
> I also have AllowOverride All
>
> jmd0 apache2 # cat vhosts.d/baculum.conf
> Listen 0.0.0.0:8087
> NameVirtualHost *:8087
>
> <VirtualHost *:8087>
> ServerName bacula
> ServerAdmin root@localhost
> DocumentRoot "/var/www/localhost/htdocs/baculum"
>
> # This should be changed to whatever you set DocumentRoot to.
> <Directory "/var/www/localhost/htdocs/baculum">
>         RewriteEngine On
>         AllowOverride All
>
>         # Controls who can get stuff from this server.
>         Order allow,deny
>         Allow from all
>
> </Directory>
> </VirtualHost>

Hello,

In your configuration there is lack of one important point. It is authorization.

Please run:

# htpasswd -c /etc/apache2/passwords someuser

and next define the user file in your Apache configuration:

<Directory /var/www/localhost/htdocs/baculum>
    AllowOverride All
    AuthType Basic
    AuthName MyPrivateFile
    AuthUserFile /etc/apache2/passwords
    Require valid-user
</Directory>

Then it should work :-)

Best regards.
Marcin

>
>
> --
> John M. Drescher

------------------------------------------------------------------------------
Put Bad Developers to Shame
Dominate Development with Jenkins Continuous Integration
Continuously Automate Build, Test & Deployment 
Start a new project now. Try Jenkins in the cloud.
http://p.sf.net/sfu/13600_Cloudbees
_______________________________________________
Bacula-users mailing list
Bacula-users AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users