mastodontech.de ist einer von vielen unabhängigen Mastodon-Servern, mit dem du dich im Fediverse beteiligen kannst.
Offen für alle (über 16) und bereitgestellt von Markus'Blog

Serverstatistik:

1,4 Tsd.
aktive Profile

#apache2

3 Beiträge2 Beteiligte2 Beiträge heute

If you're running Nextcloud on top of Apache2 on Debian 12 server and after upgrading to Debian 13 server it refuses to start up again, do the following:

a2dismod php8.2
a2enmod php8.4
systemctl restart apache2

At least that was what I needed to do.

#Nextcloud#Apache2#Debian
Fortgeführter Thread

Die zwei neue Mixture of Experts-Modelle unter Apache 2.0 Lizenz:
Das 120B-Modell erreicht Reasoning-Performance vergleichbar mit o4-mini – auf einer einzigen 80 GB GPU.
Das kompakte 20B-Modell läuft sogar auf Laptops mit ~16 GB RAM.
Beide unterstützen Chain-of-Thought, Tool-Use (z. B. Websuche, Codeausführung) und agentische Workflows – vollständig lokal einsetzbar und kommerziell nutzbar.
theguardian.com/technology/202
#OpenWeights #LLM #Apache2

The Guardian · OpenAI takes on Meta and DeepSeek with free and customisable AI modelsVon Dan Milmo

Amazon will offer OpenAI’s open-weight models, sidestepping Microsoft via Apache 2.0 license - Image via Amazon

OpenAI released its first open-weight AI models in more than ... - geekwire.com/2025/amazon-will- #artificialgeneralintelligence #openaimicrosoftpartnership #artificialintelligence #open-weightmodels #apache2.0license #openaiamazondeal #techpartnerships #amazonsagemaker #cloudcomputing

Wie geil ist des... Gerade etwas bemerkt:

Wenn bei #apache2 eine config für einen virtuellen host existiert, dieser ein "Reverse Proxy" für ein websocket ist, dann könnte es ja sein, das es cool wäre den part mit dem "redirect" regeln in dem Tag des virtuellen host zu haben und nicht außerhalb davon...

Könnte ich Recht haben mit dieser Erkenntnis?

Danke geht an @snornik für die Idee dazu. Werde das nachher mal ausprobieren...

After seeing
Improving snac Performance with Nginx Proxy Cache from @itnotes@snac.it-notes.dragas.net via
https://snac.it-notes.dragas.net/itnotes/p/1738139676.258050
https://it-notes.dragas.net/2025/01/29/improving-snac-performance-with-nginx-proxy-cache/
I decided to prematurely optimize and adjust this for my apache2 httpd server in debian where I run snac.

I've never done any caching etc before so it was a nice adventure to learn something new. The documentation helped and in the end it wasn't very hard. I learned a bit about some http headers and regex on the way too.

Basically it works like this:
Enable the relevant modules:

a2enmod expires cache cache_disk
Be sure "htcacheclean" is running to clean up old disk cache. (under debian see /etc/default/apache-htcacheclean or else the relevant systemd service)
Then add to the snac virtualhost config:

CacheRoot /var/cache/apache2/mod_cache_disk
CacheQuickHandler off
CacheLock on
# Optional while testing stuff;
CacheDetailHeader on

# My Instance ist not at the root, but under "/social"; so this needs to be adapted for most I guess:
<LocationMatch "^/social/[^/]+/s">
CacheEnable disk
ExpiresActive On
ExpiresDefault "access plus 30 days"
</LocationMatch>
This will use the disk cache to cache everything under the /s/ Path, same as the original ngnix tutorial, Utilizing the mod_expires to generate the appropriate cache headers (for lazy ones like me), In this case caching it for 30 days.
Further reading and all options explained under https://httpd.apache.org/docs/2.4/caching.html ff

Thanks for the initial tutorial @itnotes@snac.it-notes.dragas.net

#Fediverse #Hosting #ITNotes #Networking #apache2 #httpd #Ownyourdata #Server #Snac #Snac2 #Social #Tipsandtricks #Tutorial #Web #Debian
snac.it-notes.dragas.netIT Notes (@itnotes@snac.it-notes.dragas.net)2 following, 85 followers · **Improving snac Performance with Nginx Proxy Cache** https://it-notes.dragas.net/2025/01/29/improving-snac-performance-with-nginx-proxy-cache/ #Data #Fediverse #Freebsd #Hosting #ITNotes #Networking #Nginx #NoteHUB #Ownyourdata #Server #Snac #Snac2 #Social #Tipsandtricks #Tutorial #Web

*EDIT thanks for all the (similar) answers! 😁 I had always thought a web server only would serve files owned by the web user, regardless of those file mode settings! I was mistaken! :)

Apache2 (on Debian) question

Uhh, I put a file owned by root in my web server dir, and now I can download it from my browser.. is that supposed to be possible or do I have to change some settiing? 😅

I thought only files from the www user should be viewable/downloadable?

For the people that are into #apache2 and #sysadmin things. Is there a standardized way of blocking clients trying to probe / check for vulns?

I'm seeing a bunch of requests to my box resulting in 400 responses from a few IPs. For now I've just locked them out using a rudimentary fail2ban jail. But I'm wondering if there is any other ways of doing this?