Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 06/12/2006, à 14:26

zubaran

Prob avec l'url rewriting

Bonjour,

J'ai un serveur Ubuntu V2-Server, je suis inscrit à Netim, c'est lui qui gére ma redirection par IP vers mon serveur.

Mon problème est le suivant, lorsque je me connecte sur mon site web via l'IP ou le DNS de mon serveur, ex : http://sd-7002.dedibox.fr/index.html mon url rewriting marche correctement puisque elle renvoie mon index.html vers mon index.php.

Par contre lorsque je me connecte sur mon site web via mon nom de domaine, ex : http://www.mondomaine/index.html j'ai un message d'erreur :

Not Found

The requested URL /abandonware-paradise/index.php was not found on this server.

Voici mon /etc/apache2/sites-available/default :

NameVirtualHost *

<VirtualHost *>
        ServerAdmin webmaster@abandonware-paradise.eu
        DocumentRoot /var/www

       <Directory />
               Options FollowSymLinks
               AllowOverride All
       </Directory>

       <Directory /var/www/>
               Options Indexes FollowSymLinks MultiViews
               AllowOverride All
               Order allow,deny
               allow from all
              # This directive allows us to have apache2's default start page
              # in /apache2-default/, but still have / go to the right place
              # RedirectMatch ^/$ /apache2-default/
       </Directory>

       ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/

       <Directory "/usr/lib/cgi-bin">
               AllowOverride All
               Options ExecCGI -MultiViews +SymLinksIfOwnerMatch
               Order allow,deny
               Allow from all
       </Directory>

       ErrorLog /var/log/apache2/error.log

      # Possible values include: debug, info, notice, warn, error, crit,
      # alert, emerg.
       LogLevel warn

       CustomLog /var/log/apache2/access.log combined
       ServerSignature On

   Alias /doc/ "/usr/share/doc/"

   <Directory "/usr/share/doc/">
Options Indexes MultiViews FollowSymLinks
       AllowOverride All
       Order deny,allow
       Deny from all
       Allow from 127.0.0.0/255.0.0.0 ::1/128
   </Directory>

</VirtualHost>

ServerName localhost

<VirtualHost www.abandonware-paradise.eu>
       DocumentRoot /var/www/abandonware-paradise
       ServerName abandonware-paradise.eu
       ServerAlias *abandonware-paradise.eu
ErrorLog /var/www/httpd/vhosts/abandonware-paradise.eu/logs/error.log
LogLevel warn
CustomLog /var/www/httpd/vhosts/abandonware-paradise.eu/logs/access.log combined
ServerSignature ON
        <Directory />
                Options FollowSymLinks
                AllowOverride All
                RewriteEngine on

        </Directory>
        <Directory /var/www/abandonware-paradise/>
                Options Indexes FollowSymLinks MultiViews
                AllowOverride All
                Order allow,deny
                RewriteEngine on
                Allow from all
        </Directory>

        ScriptAlias /cgi-bin/ /var/www/cgi-bin/
        <Directory "/var/www/cgi-bin">
                AllowOverride None
                Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch
                Order allow,deny
                Allow from all
        </Directory>

ErrorLog /var/log/apache2/error.log
</VirtualHost>

Comme vous pouvez le voir j'ai bien mis AllowOverride All, j'ai aussi activé le mode rewriting avec la commande sudo a2enmod rewrite. Peut-être y-a t'il un prob avec mon VirtualHost.

Quelqu'un peut-il m'aider ? Merci