Hebergement

APACHE – mod_rewrite creates 301 instead of transparent redirection if folder exists – efreedom

APACHE – mod_rewrite creates 301 instead of transparent redirection if folder exists Hello, i’m having a small problem here. I’m using a simple rule to redirect all requests to a script, excepts some folders with static content : RewriteEngine On RewriteCond $1 !^(templates|css|js|uploads)/(.*)$ RewriteRule ^(.*)$ index.php?url=$1 [L,QSA] Most of the time, the redirection is good …

APACHE – mod_rewrite creates 301 instead of transparent redirection if folder exists – efreedom Lire la suite »

2 NDD, Apache et une seule IP : Administration d’un site Web

Est-ce que le mod-ssl est effectivement activé ? Si c’est le cas apache écoute sur le port 80 et le 443. Dans ce cas, il faut impérativement déclarer comme suit : Code: Tout sélectionner NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost *:80> ServerName site1.com … </VirtualHost> <VirtualHost *:80> ServerName site2.com … </VirtualHost> Sans ce type de déclaration …

2 NDD, Apache et une seule IP : Administration d’un site Web Lire la suite »

Sur-couche AJAX pour Awstats

Le package s’appelle Jawstats : http://www.jawstats.com/ Installation mkdir /var/www/awstats-6.95/wwwroot/jawstats cd /var/www/awstats-6.95/wwwroot/jawstats wget http://static.jawstats.com/src/jawstats-0.7beta.tar.gz tar -xzvf jawstats-0.7beta.tar.gz cp config.dist.php config.php Modification de config.php : &lt;?php     // core config parameters   $sDefaultLanguage      = "fr";   $sConfigDefaultView    = "thismonth.all";   $bConfigChangeSites    = false;   $bConfigUpdateSites    = false;   $sUpdateSiteFilename   = "xml_update.php";     // individual site configuration   $aConfig["wiki.nas78.net"] = <a href="http://www.php.net/array">array</a>(     "statspath"   =&gt; "/var/www/awstats-6.95/wwwroot/cgi-bin/",     "updatepath"  =&gt; "/var/www/awstats-6.95/wwwroot/cgi-bin/",     "siteurl"     …

Sur-couche AJAX pour Awstats Lire la suite »

WordPress 3.0: Multisite Domain Mapping Tutorial » Otto on WordPress

« How to Setup Your Facebook Connect Application Quickie: Apache and Skype » WordPress 3.0: Multisite Domain Mapping Tutorial June 4, 2010, 12:25 pm The other day, Klint Finley wrote a very good walkthrough of using the new Multisite functionality of WordPress 3.0. In the comments, a lot of people wanted to know how to …

WordPress 3.0: Multisite Domain Mapping Tutorial » Otto on WordPress Lire la suite »

apache-redirect

Apache Redirections Apache provides many ways of redirecting requests to different websites. The two main ones are probably mod_proxy and mod_rewrite, which will be briefly covered here. These modules allow us to access data that may not have been accessible otherwise, for example behind a firewall. mod_rewrite Mod_rewrite is an incredibly powerful module, and can …

apache-redirect Lire la suite »

Retour en haut