[GH-ISSUE #141] Wiki Bug regarding .htaccess file #109

Closed
opened 2026-02-26 09:35:58 +03:00 by kerem · 1 comment
Owner

Originally created by @reissmann on GitHub (Jul 1, 2015).
Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/141

Hi,

there is a bug in your installation manual (https://github.com/opensolutions/ViMbAdmin/wiki/Installation), regarding the .htaccess file. This causes an 404 error as reported in #114

The apache documentation for AllowOverride says:

When this directive is set to None, then .htaccess files are completely ignored.
In this case, the server will not even attempt to read .htaccess files in the filesystem.

You need to change the config example to this:

Alias /vimbadmin /usr/local/vimbadmin/public

<Directory /usr/local/vimbadmin/public>
    Options FollowSymLinks
    AllowOverride None

    # For Apache <= 2.3:
    Order allow,deny
    allow from all

    # For Apache >= 2.4
    # Require all granted

    SetEnv APPLICATION_ENV production

    RewriteEngine On
    RewriteCond %{REQUEST_FILENAME} -s [OR]
    RewriteCond %{REQUEST_FILENAME} -l [OR]
    RewriteCond %{REQUEST_FILENAME} -d
    RewriteRule ^.*$ - [NC,L]
    RewriteRule ^.*$ /vimbadmin/index.php [NC,L]
</Directory>

or allow the use of .htaccess, by not setting

AllowOverride None

Regards and thanks for the software :)

Originally created by @reissmann on GitHub (Jul 1, 2015). Original GitHub issue: https://github.com/opensolutions/ViMbAdmin/issues/141 Hi, there is a bug in your installation manual (https://github.com/opensolutions/ViMbAdmin/wiki/Installation), regarding the .htaccess file. This causes an 404 error as reported in #114 The apache documentation for AllowOverride says: ``` When this directive is set to None, then .htaccess files are completely ignored. In this case, the server will not even attempt to read .htaccess files in the filesystem. ``` You need to change the config example to this: ``` apache Alias /vimbadmin /usr/local/vimbadmin/public <Directory /usr/local/vimbadmin/public> Options FollowSymLinks AllowOverride None # For Apache <= 2.3: Order allow,deny allow from all # For Apache >= 2.4 # Require all granted SetEnv APPLICATION_ENV production RewriteEngine On RewriteCond %{REQUEST_FILENAME} -s [OR] RewriteCond %{REQUEST_FILENAME} -l [OR] RewriteCond %{REQUEST_FILENAME} -d RewriteRule ^.*$ - [NC,L] RewriteRule ^.*$ /vimbadmin/index.php [NC,L] </Directory> ``` or allow the use of .htaccess, by not setting ``` apache AllowOverride None ``` Regards and thanks for the software :)
kerem closed this issue 2026-02-26 09:35:58 +03:00
Author
Owner

@barryo commented on GitHub (Jul 2, 2015):

Thanks and fixed!

<!-- gh-comment-id:117923337 --> @barryo commented on GitHub (Jul 2, 2015): Thanks and fixed!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ViMbAdmin-opensolutions#109
No description provided.