# Mod\_rewrite

Published articles for Mod\_rewrite.

This is one page of public article previews, not the complete archive. Follow Next page to continue. Summaries are not the original full articles.

## Deploying PHP 8.0 applications with Azure App Service

DevFeed: [Deploying PHP 8.0 applications with Azure App Service](<https://devfeed.tech/articles/deploying-php-8-0-applications-with-azure-app-service-29332.md>)

Original publisher: [Read original article](<https://www.schakko.de/2021/09/08/deploying-php-8-0-applications-with-azure-app-service/>)

Author: Schakko

Published: 2021-09-08T11:45:14Z

Content type: tutorial

Language: en

Sources: [Schakko](<https://devfeed.tech/sources/schakko.md>)

Topics: [Azure](<https://devfeed.tech/topics/azure.md>), [PHP](<https://devfeed.tech/topics/php.md>), [nginx](<https://devfeed.tech/topics/nginx.md>), [Deployment](<https://devfeed.tech/topics/deployment.md>), [Laravel](<https://devfeed.tech/topics/laravel.md>), [Docker Image](<https://devfeed.tech/topics/docker-image.md>), [Docker Container](<https://devfeed.tech/topics/docker-container.md>)

Tags: [azure](<https://devfeed.tech/tags/azure.md>), [ci-cd](<https://devfeed.tech/tags/ci-cd.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [docker-container](<https://devfeed.tech/tags/docker-container.md>), [docker-image](<https://devfeed.tech/tags/docker-image.md>), [laravel](<https://devfeed.tech/tags/laravel.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [nginx](<https://devfeed.tech/tags/nginx.md>), [php](<https://devfeed.tech/tags/php.md>), [shell-script](<https://devfeed.tech/tags/shell-script.md>), [startup](<https://devfeed.tech/tags/startup.md>)

### AI overview

This tutorial explains how to run PHP 8.0 applications on Azure App Service after the runtime stack changed from Apache to nginx. It describes updating the nginx configuration inside the underlying Docker image, including the use of a startup command or script for Laravel applications because .htaccess and Kudu deployment customization are insufficient.

### Source excerpt

To be able to run PHP applications on Azure App Services which are using PHP 8.0 features, the Runtime Stack has to be changed. With the newer Runtime Stack, you also have to update the nginx.conf of the underlying Docker image. This article describes how you can achieve that. 2023-03-28: [...] The post Deploying PHP 8.0 applications with Azure App Service appeared first on schakko.de.

## Apache - precompressing static files with gzip

DevFeed: [Apache - precompressing static files with gzip](<https://devfeed.tech/articles/apache-precompressing-static-files-with-gzip-27596.md>)

Original publisher: [Read original article](<https://gagor.pro/2013/12/apache-precompressing-static-files-with-gzip/>)

Author: Tom

Published: 2013-12-27T00:00:00Z

Content type: tutorial

Language: en

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Compression](<https://devfeed.tech/topics/compression.md>), [configuration](<https://devfeed.tech/topics/configuration.md>), [CSS](<https://devfeed.tech/topics/css.md>), [Code](<https://devfeed.tech/topics/code.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [code](<https://devfeed.tech/tags/code.md>), [compression](<https://devfeed.tech/tags/compression.md>), [config](<https://devfeed.tech/tags/config.md>), [configuration](<https://devfeed.tech/tags/configuration.md>), [css](<https://devfeed.tech/tags/css.md>), [encoding](<https://devfeed.tech/tags/encoding.md>), [how-to](<https://devfeed.tech/tags/how-to.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>)

### AI overview

A tutorial on configuring Apache rewrite rules to serve precompressed CSS and JavaScript files when clients support gzip. It explains how to assign the correct content types and prevent mod_deflate from recompressing files, while warning against applying gzip encoding indiscriminately to all .gz files.

### Source excerpt

Some time ago I've show how to precompress js and css file with gzip to be available for Nginx's mod_gzip. In default configuration Apache don't have such module but similar functionality could be achieved with few custom rewirtes. Basically we will start with these rewrites to serve gzipped CSS/JS files if they exist and the client accepts gzip compression: RewriteEngine on RewriteCond %{HTTP:Accept-encoding} gzip RewriteCond %{REQUEST_FILENAME}\.gz -s RewriteRule ^(.*)\.(js|css)$ $1\.$2\.gz [QSA] Then we need to setup proper content types for such compressed files - I know how to do this in two ways:

## mod\_rewrite - wymuszenie małych liter w adresie URL

DevFeed: [mod\_rewrite - wymuszenie małych liter w adresie URL](<https://devfeed.tech/articles/mod-rewrite-wymuszenie-ma-ych-liter-w-adresie-url-27540.md>)

Original publisher: [Read original article](<https://gagor.pro/2012/09/mod_rewrite-wymuszenie-malych-liter-w-adresie-url/>)

Author: Tom

Published: 2012-09-25T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Mod\_rewrite](<https://devfeed.tech/topics/mod-rewrite.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>)

### AI overview

The article explains how to use Apache mod_rewrite to force lowercase URLs. It describes why case differences can cause requests to map to nonexistent directories and presents a tolower map with redirection for URLs containing uppercase letters.

### Source excerpt

Co prawda adresy URL pozwalają na stosowanie zarówno dużych jak i małych liter ale różne systemy mogą je różnie obsługiwać i może się trafić sytuacja, w której nie zechcemy by np. duże litery w ogóle pojawiały się w adresach URL. Doskonały przykład to mój niedawny wpis: Apache: ograniczenie dostępu dla zalogowanych użytkowników z mod_rewrite i mod_auth_basic . Zachodzi tam sytuacja, w której katalog użytkownika jest jego loginem małymi literami (bądź dużymi - jak kto woli), a użytkownik wpisując login może użyć zarówno małych jak i dużych liter i tutaj zaczyna się jazda. Można użyć modyfikatora NC (no case), ale to wpłynie tylko na porównania - przepisanie ścieżki na nazwę podaną przez usera (z dużymi i małymi literami) przekieruje do katalogu, którego nie ma (bo jest katalog tylko małymi/dużymi).

## Apache: ograniczenie dostępu dla zalogowanych użytkowników z mod\_rewrite i mod\_auth\_basic

DevFeed: [Apache: ograniczenie dostępu dla zalogowanych użytkowników z mod\_rewrite i mod\_auth\_basic](<https://devfeed.tech/articles/apache-ograniczenie-dostepu-dla-zalogowanych-uzytkownikow-z-mod-rewrite-i-mod-auth-basic-27535.md>)

Original publisher: [Read original article](<https://gagor.pro/2012/09/apache-ograniczenie-dostepu-dla-zalogowanych-uzytkownikow-z-mod_rewrite-i-mod_auth_basic/>)

Author: Tom

Published: 2012-09-09T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Mod\_rewrite](<https://devfeed.tech/topics/mod-rewrite.md>), [.NET Framework](<https://devfeed.tech/topics/net-framework.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [auth](<https://devfeed.tech/tags/auth.md>), [debian](<https://devfeed.tech/tags/debian.md>), [linux](<https://devfeed.tech/tags/linux.md>), [login](<https://devfeed.tech/tags/login.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>), [security](<https://devfeed.tech/tags/security.md>), [user](<https://devfeed.tech/tags/user.md>)

### AI overview

This Polish tutorial explains how to use Apache mod_rewrite with mod_auth_basic to redirect authenticated users to directories named after their logins and prevent access to other users' directories. It describes comparing the URI login with the REMOTE_USER value using RewriteRule and RewriteCond backreferences.

### Source excerpt

Niedawno trafiłem na ciekawy problem w mod_rewrite - by przekierowywać użytkowników logujących się jednym z modułów mod_auth_basic do dedykowanych im katalogów, równocześnie blokując dostęp do katalogów innych użytkowników. Nie brzmi to jakoś strasznie ale problem okazał się być całkiem nietrywialnym. Teoretyczne rozwiązanie sprowadzało się do wyszukania loginu użytkownika ze ścieżki URI i porównania z nazwą użytkownika ze zmiennej %{REMOTE_USER} - jeśli wartości się różnią to Forbidden. Ale szybko okazało się że w RewriteCond zmienne z dopasowań można podstawiać tylko w pierwszym parametrze i że o ile można RewriteCond'y połączyć wyrażeniami logicznymi typu AND/OR to nie ma możliwości porównania czy dopasowania z kolejnych RewriteCond'ów są identyczne. Po kilku dniach szperania w dokumentacji i różnych tutorialach udało mi się trafić na jedną wartościową wskazówkę ale tej stronki już nie ma, więc opiszę problem dla potomnych.

## Apache mod\_expires konfiguracja

DevFeed: [Apache mod\_expires konfiguracja](<https://devfeed.tech/articles/apache-mod-expires-konfiguracja-27510.md>)

Original publisher: [Read original article](<https://gagor.pro/2012/01/apache-mod_expires-konfiguracja/>)

Author: Tom

Published: 2012-01-23T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [Caching](<https://devfeed.tech/topics/caching.md>), [Cache](<https://devfeed.tech/topics/cache.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [cache](<https://devfeed.tech/tags/cache.md>), [cache-control](<https://devfeed.tech/tags/cache-control.md>), [debian](<https://devfeed.tech/tags/debian.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>)

### AI overview

A Polish tutorial on configuring Apache mod_expires to set Cache-Control and Expires headers for static files, with guidance on cache durations and cache-busting paths. It also discusses disabling ETag generation to reduce disk-stat operations under load.

### Source excerpt

Aby umożliwić odwiedzającym nasze strony cachowanie obrazków (tak by nie musieli pobierać ich każdorazowo bo przecież nie zmieniają się aż tak często) konieczne jest ustawienie nagłówków: Cache-Control, Expires dla odpowiednich typów plików. W Apachem jest do tego dedykowany moduł - mod_expires. W Debianie dostarczany jest on bez domyślnej globalnej konfiguracji - a ja lubię gdy cacheuje mi się większość statyki. Zawsze można dostosować czas cachowania pod siebie względem określonego typu pliku, np. dla Java Scriptów ustawić na 1 dzień gdy często się zmieniają. Można też w samej aplikacji zmieniać ścieżkę do pliku by wymusić odświeżenie (lub podawać ścieżkę z jakimś losowym identyfikatorem wycinanym przez mod_rewrite).

## Statystyki odwiedzin dla wielu serwisów z AWStats

DevFeed: [Statystyki odwiedzin dla wielu serwisów z AWStats](<https://devfeed.tech/articles/statystyki-odwiedzin-dla-wielu-serwisow-z-awstats-27491.md>)

Original publisher: [Read original article](<https://gagor.pro/2011/08/statystyki-odwiedzin-dla-wielu-serwisow-z-awstats/>)

Author: Tom

Published: 2011-08-29T00:00:00Z

Content type: tutorial

Language: pl

Sources: [Tomasz Gągor](<https://devfeed.tech/sources/tomasz-gagor.md>)

Topics: [HTTP](<https://devfeed.tech/topics/http.md>), [servers](<https://devfeed.tech/topics/servers.md>), [Open Source](<https://devfeed.tech/topics/open-source.md>), [Mod\_rewrite](<https://devfeed.tech/topics/mod-rewrite.md>)

Tags: [analytics](<https://devfeed.tech/tags/analytics.md>), [apache](<https://devfeed.tech/tags/apache.md>), [debian](<https://devfeed.tech/tags/debian.md>), [http](<https://devfeed.tech/tags/http.md>), [lan](<https://devfeed.tech/tags/lan.md>), [linux](<https://devfeed.tech/tags/linux.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [open-source](<https://devfeed.tech/tags/open-source.md>), [rewrite](<https://devfeed.tech/tags/rewrite.md>), [sites](<https://devfeed.tech/tags/sites.md>)

### AI overview

A Polish tutorial explains how to install and configure AWStats to analyze HTTP server logs for multiple websites. It discusses Apache CGI setup and restricting access to local networks or other authorized users.

### Source excerpt

Co prawda na swojej stronie zrobiłem kilka podstawowych statystyk i coś tam sobie loguję do bazy danych, ale gdyby się chwilę zastanowić to przecież to samo robi serwer www - wrzuca do logów każde zapytanie HTTP, kod błędu, nazwę agenta, itd. Dublowanie tych danych nie jest najbardziej optymalne. Stąd też chwilę pogooglałem i znalazłem świetny Open Source'owy projekt: AWStats, który jest webowym analizatorem logów dla serwerów HTTP, FTP i SMTP.

## Cal Henderson - Building Flickr

DevFeed: [Cal Henderson - Building Flickr](<https://devfeed.tech/articles/cal-henderson-building-flickr-35293.md>)

Original publisher: [Read original article](<https://darkcoding.net/future-of-web-apps/cal-henderson-building-flickr/>)

Author: Graham King

Published: 2006-02-18T13:39:52Z

Content type: article

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [Web](<https://devfeed.tech/topics/web.md>), [web applications](<https://devfeed.tech/topics/web-applications.md>), [API](<https://devfeed.tech/topics/api.md>), [Ajax](<https://devfeed.tech/topics/ajax.md>), [Mod\_rewrite](<https://devfeed.tech/topics/mod-rewrite.md>), [XML](<https://devfeed.tech/topics/xml.md>), [Mobile](<https://devfeed.tech/topics/mobile.md>), [Open Data](<https://devfeed.tech/topics/open-data.md>), [export](<https://devfeed.tech/topics/export.md>), [import](<https://devfeed.tech/topics/import.md>), [Firefox](<https://devfeed.tech/topics/firefox.md>)

Tags: [ajax](<https://devfeed.tech/tags/ajax.md>), [api](<https://devfeed.tech/tags/api.md>), [export](<https://devfeed.tech/tags/export.md>), [firefox](<https://devfeed.tech/tags/firefox.md>), [futureofwebapps](<https://devfeed.tech/tags/futureofwebapps.md>), [import](<https://devfeed.tech/tags/import.md>), [mobile](<https://devfeed.tech/tags/mobile.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [notifications](<https://devfeed.tech/tags/notifications.md>), [software](<https://devfeed.tech/tags/software.md>), [web](<https://devfeed.tech/tags/web.md>)

### AI overview

Notes from Cal Henderson's talk on building Flickr, covering collaboration, data aggregation, public APIs, clean URLs, AJAX, Unicode, desktop and mobile integration, open data, and open content.

### Source excerpt

Build Flickr: Lessons from the Web 2.0 Pioneer.

## Joshua Schacter - del.icio.us - Things we've learned

DevFeed: [Joshua Schacter - del.icio.us - Things we've learned](<https://devfeed.tech/articles/joshua-schacter-del-icio-us-things-we-ve-learned-35294.md>)

Original publisher: [Read original article](<https://darkcoding.net/future-of-web-apps/joshua-schacter-delicious-things-weve-learned/>)

Author: Graham King

Published: 2006-02-18T13:05:24Z

Content type: article

Language: en

Sources: [Graham King](<https://devfeed.tech/sources/graham-king.md>)

Topics: [web applications](<https://devfeed.tech/topics/web-applications.md>), [Web Development](<https://devfeed.tech/topics/web-development.md>), [API](<https://devfeed.tech/topics/api.md>), [Monitoring](<https://devfeed.tech/topics/monitoring.md>), [Databases](<https://devfeed.tech/topics/databases.md>), [Latency](<https://devfeed.tech/topics/latency.md>), [RSS](<https://devfeed.tech/topics/rss.md>), [browser](<https://devfeed.tech/topics/browser.md>)

Tags: [apache](<https://devfeed.tech/tags/apache.md>), [api](<https://devfeed.tech/tags/api.md>), [browser](<https://devfeed.tech/tags/browser.md>), [cache](<https://devfeed.tech/tags/cache.md>), [database](<https://devfeed.tech/tags/database.md>), [developer](<https://devfeed.tech/tags/developer.md>), [futureofwebapps](<https://devfeed.tech/tags/futureofwebapps.md>), [latency](<https://devfeed.tech/tags/latency.md>), [mod-rewrite](<https://devfeed.tech/tags/mod-rewrite.md>), [monitoring](<https://devfeed.tech/tags/monitoring.md>), [software](<https://devfeed.tech/tags/software.md>), [web-apps](<https://devfeed.tech/tags/web-apps.md>)

### AI overview

Notes from Joshua Schachter's 2006 talk about lessons from building del.icio.us, including solving a real problem, monitoring and optimizing applications, designing usable APIs and URLs, supporting RSS, and responding to unexpected user behavior.

### Source excerpt

"Valuable insights from del.icio.us founder: Building web apps that users love."