Jump to content
View in the app

A better way to browse. Learn more.

Froxlor Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

.htaccess: RewriteEngine On -> HTTP 500 Internal Server error

Featured Replies

Hi,

I'm quite new to froxlor. 

I did the following:

  1. I cloned & upgraded an existing server(Ubuntu 12.04 -> 16.04; Froxlor 0.93 -> 0.98.8)
  2. The webserver is starting correctly
  3. On all sites, where a "Rewrite Engine On" Directive is in the DocRoot, I get an HTTP 500 - Internal Server Error
  4. The fix would be to get a Line "AllowOverride FileInfo" into the root-directory directive of every  apache-vhost config
  5. As a workaround I put into SYSTEM/Settings/Webserver in default VHOST-Settings: 
  6. <Location />
    AllowOverride FileInfo
    </Location>

    ---

Well it works. But I'm sure that's not a good way to do it and I assume Rewriting should work right out of the box.

Any hints, how to do this in a better way?

By default, apache 2.4 (which i assume 16,04 is using) does NOT allow execution of .htaccess at all (AllowOverride None !!!) - Froxlor whatsoever does generate corresponding entries in the customers vhosts (Require all granted + AllowOverride All). If you only get errors with people using rewrites, maybe mod_rewrite is not enabled?

  • Author

Thanks for your answer d00p.

I made sure before mod_rewrite is enabled:

root@myserver:~# ls -tlra /etc/apache2/mods-enabled/*rewrite*
lrwxrwxrwx 1 root root 30 Mär  2  2012 /etc/apache2/mods-enabled/rewrite.load -> ../mods-available/rewrite.load

When I manually enter "AllowOverride FileInfo" in a generated vhost, and reload apache it works for this vhost. (and the directive is wiped away of course in the next configuration generation run.)

---

Yes. I'm using apache 2.4. I also selected config generation for apache 2.4 in the froxlor webserver settings.

As said, froxlor does generate corresponding entries, please nopaste the generated vhost of a domain where the rewrite is not working and/or try to see if there are any entries in apaches/customers error log regarding the 500 error

Archived

This topic is now archived and is closed to further replies.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.