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.

PHP-FPM Security (Limit Extensions)

Featured Replies

Hello again, hope you don't mind me coming up with another issue (including proposal for solution obviously).

I had another issue using PHP-FPM, where I cannot get my .XML files parsed by the PHP interpreter even though I have this in my .htaccess:

<FilesMatch "\.(xml)$">
  SetHandler php5-fastcgi
  Action php5-fastcgi /fastcgiphp
  Options +ExecCGI
</FilesMatch>

It turns out that there is a limit imposed by the security.limit_extensions setting which defaults to .php only. My .XML files are used in order to automatically return the correct autodiscover/autoconfig settings to Outlook/Thunderbird and the like and therefor need to be "dynamic XML files", but I could imagine someone else needing .phps or the like...

Currently I have gone so far as to add some stuff to /var/www/froxlor/lib/classes/phpinterface/class.phpinterface_fpm.php @ 248:

if ($this->_domain['domain'] == 'autodiscover.mydomain.tld') {
        $fpm_config.= 'security.limit_extensions = .php .xml'."\n";
}

But again, this could be a new string-based setting in the new PHP-FPM versions section.

(Slowly I'll get in touch with the code structure I promise...)

Will be a setting in the next version, currently testing my changes :)

  • Author

great thx! I've been working all day using the version from yesterday and haven't noticed anything amiss so far... have a nice evening!

It's all in the git repo ;) have fun Testing. Feedback is very welcome.

  • Author

works like a charm, thanks again! :D

Archived

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

Account

Navigation

Search

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.