Archivi
-
Rimuovere apache dall’esecuzione automatica
update-rc.d -f apache2 remove
2 ago 2010, | Filed under Ubuntu -
Visualizzare i moduli caricati su Apache2 sotto Ubuntu 8.04
Per visualizzare i moduli caricati dentro apache si può utilizzare il commando apache2 -t -D DUMP_MODULES Nel caso in cui il commando di cui sopra dovess fallire con errore apache2: bad user name ${APACHE_RUN_USER} Utilizzate questa serie di commandi export APACHE_RUN_USER=www-data export APACHE_RUN_GROUP=www-data apache2 -t -D DUMP_MODULES
23 lug 2010, | Filed under Ubuntu -
Rewrite multipli con apache.
Da questo post: 1 vote down Here’s a solution which will loop over key/value pairs in your URL: RewriteRule ^cat_ap~([^~]+)~([^~]+)(.*)\.htm$ cat_ap$1?$1=$2 [R,QSA] RewriteRule ^cat_ap(.*)\.htm$ /urban/cat_ap.php [L] It grabs the first pair off the URL, then rewrites it to the exact same URL without that pair, adds the pair to the query string ([QSA]) and starts [...]
21 mar 2009, | Filed under Tips&TricksTags: Apache, mod_rewrite -
Script php per aggiungere un nuovo virtual site sotto Apache.
Creare lo script nella cartella desiderata vim scriptname.php
12 nov 2008, | Filed under Ubuntu -
Reverse Proxy di Interfaccia Web(WebGui) di Utorrent con Apache mod_proxy
Premessa: A volte può capitare di non poter utilizzare le porte predefenite per interfacce web di vari servizi come Utorrent e Emule (per esempio se al posto di lavoro potete uscire solamente sulla porta 80). Certo, potete sempre impostare il programma che vi interessa in modo che ascolti sulla porta 80 però non potete averne [...]
4 feb 2008, | Filed under Tips&Tricks, Varie