BL🅾G News


« octobre 2018
1234567
891011121314
15161718192021
22232425262728
293031

Actu G33k & Admin stuff. Powered by 🅴🆁🆁🅴🆄🆁32

Aucun commentaire

Apache 2.4 Rewrite 404 errors log

debian logoapache Logo

- Create 1 conf file in apache :

$ nano /etc/apache2/conf-available/rewrite-log-404.conf

- Paste this code inside /etc/apache2/conf-available/rewrite-log-404.conf


RewriteEngine On
# exclude directory index
RewriteCond %{REQUEST_URI} !/index\.(php|html?)$
# exlcude auto-index of directories
RewriteCond %{REQUEST_URI} !/$
# if the request is not a file, directory, or symlink
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l

# set the "notfound" environment variable
RewriteRule ^ - [E=notfound:true,L]

# LogFormat  Vhost log
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %X" vhost_combined
 
 
CustomLog /var/log/apache2/error.log vhost_combined env=notfound
CustomLog /var/log/apache2/requests.log vhost_combined env=!notfound

- Activate conf with:

$  a2enconf rewrite-log-404

-------------------------------
by 🅴🆁🆁🅴🆄🆁32

Hosted on
🅴🅲🅷🔵🆂🆈🆂🆃🅴🅼



Aucun commentaire
windows10

Désactiver le port 80 sur Windows 10

Par défaut le port 80 est utilisé dans Windows10 par le service "World Wide Web publishing Service"

Pour désactiver ce service:

- appuyez sur la touche windows du clavier et tapez simplement "Services"

- Rechercher dans la fenêtre "World Wide Web publishing Service"

- Mettre sur "Stop"

- ( Optionel) Désactivation permanente : Sélectionner "Manuel"

by 🅴🆁🆁🅴🆄🆁32
Hosted on
🅴🅲🅷🅾🆂🆈🆂🆃🅴🅼




Rendered in 0.010844 seconds