How to set Header set Access-Control-Allow-Origin in apache2 config file AWS #server #apache2 #amazonec2 #aws #htaccess
#server #apache2 #amazonec2 #aws #htaccess
Any .htaccess experts out here?
I'm trying to set an environment variable that I can then read in the .htaccess file using RewriteCond %{ENV:VARNAME} value[NC]
Or basically, I'm trying to simulate Acquia envrionment variables to test something in my htaccess configuration. Is this something I could set in httpd.conf or pass in for testing?
Just used this tool to check my Apache redirect rules. Very useful.
@pasqualeberesti J'ai eu aussi pas mal d'essais-erreurs dans la configuration de mon .htaccess 😩
Comme mon site n'est que en HTML (et que je n'y connais pas grand chose en #PHP 🙃), j'ai persévéré avec le #htaccess. 😆
Mais je suis curieux de connaître la suite de ton côté. 😉
#php #htaccess #web #security #siteweb #securite
J'ai testé pas mal de site que j'ai pour habitude de visiter. Et ils sont, pour la plupart, classé F. 👀
Ai-je perdu mon temps...? Je ne pense pas puisque j'ai appris des choses. 🧑🎓👍
Puis, aujourd'hui, je peux me targuer d'avoir le même score de sécurité que #Mozilla ! 😆
#mozilla #securite #siteweb #htaccess #mozillaobservatory
Bon... J'ai essayé de faire au mieux avec #Mozilla #Observatory (https://observatory.mozilla.org/) pour améliorer la sécurité de mon site. 🔐
Bien que je pense que cela n'ait pas une utilité crucial, j'ai appris pas mal de chose dans ce travail ! 🤓
J'ai le droit à un B+. Je vais me satisfaire de cela ! 😃
#mozilla #observatory #securite #siteweb #htaccess #ssl #mozillaobservatory
You are welcome! See also the #htaccess cheatsheet on disabling image hotlinking: https://htaccesscheatsheet.com/#disable-image-hotlinking
Of course. There are many examples online, here is my .htaccess:
RewriteEngine on
RewriteCond %{HTTP_REFERER} !^$
RewriteCond %{HTTP_REFERER} !^http://(albert|www)\.rierol\.net/.*$ [NC]
RewriteRule \.(jpg|png|jpeg|gif)$ - [F]
Means:
Line 1: switch on.
Line 2: calling page can't be nothing.
Line 3: calling page can't be anything other than my own (sub)domains.
Line 4: if the file has an image extension, then fail.
⚒️ Esistono diversi tool che permettono di capire se un file #htaccess contiene errori di sintassi.
🤔 Ma quanti spiegano gli errori logici?
🧠 Questo è un esempio di applicazione di #ChatGPT in un file htaccess cui non ci sono errori di sintassi, ma logici che non è semplice trovare prima di constatare il problema online.
#htaccess tester tool by Madewithlove is a game changing tool if you have to meddle with Apache's mod_rewrite rules. Not only did it helped me debug my regex issue, but playing with it helped me learn how to better code my rules 😍
https://davidroessli.com/logs/2023/01/how-to-debug-your-htaccess-rewrite-rules/
We just released our new #version 1.7!
New: Upgrade system
- System upgrades from frontend or console
- ZIP download from #github will automatically be converted to an upgradable system
- #database upgrade, schema export and conversion
Misc.:
#Bugfix for #Shopware and PDF background, Multi DB, #htaccess security
#openxe #warenwirtschaft #erp #freiesoftware #wawision #xentral #crm #ticketsystem #freesoftware #mysql #git #foss #floss
#version #github #database #bugfix #shopware #htaccess #openxe #warenwirtschaft #erp #freiesoftware #wawision #Xentral #crm #ticketsystem #freesoftware #mysql #git #foss #floss
We just released our new #version 1.7!
New: Upgrade system
- System upgrades from frontend or console
- ZIP download from #github will automatically be converted to an upgradable system
- #database upgrade, schema export and conversion
Misc.:
#Bugfix for #Shopware and PDF background, Multi DB, #htaccess security
#openxe #warenwirtschaft #erp #freiesoftware #wawision #xentral #crm #ticketsystem #freesoftware #mysql #git #foss #floss
#version #github #database #bugfix #shopware #htaccess #openxe #warenwirtschaft #erp #freiesoftware #wawision #Xentral #crm #ticketsystem #freesoftware #mysql #git #foss #floss
Wir haben soeben unsere neue #Version 1.7 veröffentlicht!
Neu: Upgrade-System
- Systemupgrades aus dem Frontend oder der Konsole
- ZIP-Download von #github wird automatisch in upgradefähiges System umgewandelt
- #Datenbank-Upgrade, Schema-Export und Konvertierung
Sonstiges:
#Bugfix für #Shopware und PDF-Hintergrund, Multi-DB, #htaccess Sicherheitsfunktion
#openxe #warenwirtschaft #erp #freiesoftware #wawision #xentral #crm #ticketsystem #freesoftware #mysql #git #foss #floss
#version #github #datenbank #bugfix #Shopware #htaccess #openxe #Warenwirtschaft #erp #freiesoftware #wawision #Xentral #crm #ticketsystem #freesoftware #mysql #git #foss #floss
¿Alguien sabe como hacer una regla para personas autorizadas en #htaccess?
Intente con:
%{LA-U:REMOTE_USER}
%{REMOTE_USER}
Pero realmente no se donde buscar...
Danke, Jörg.
Ich bin zwar nicht Markus, aber mir hat's trotzdem geholfen.
https://joergs-forum.de/weiterleitungen-auf-andere-parameter-werte-t-4879-1
#parameter #weiterleitung #htaccess